Reports any if statements with which 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 case branches the resulting switch statement should have.

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