Reports any if statements that can be replaced by a switch statement. This inspection will automatically suggest string switches when the project language level is Java 7 or higher.

Use the text field below to indicate the minimum number of if branches with condition an if statement should have to be reported. A terminal else branch (without if) is not counted

Use the first checkbox below to have this inspection suggest switch statements on primitive and boxed numbers and characters.

Use the second checkbox below to have this inspection suggest switch statements on enum constants.

Use the third checkbox below to only suggest switch statements which can't introduce a NullPointerException