Code Inspection: 'switch' with single 'case'
Configure inspections: Settings | Editor | Inspections
Show intention actions: AltEnter
Reports the switch
statements that only contain a single case
statement. Such switch
statements can be converted into if
statements.
Place the caret at the highlighted line and press AltEnter or click
.
Click the arrow next to the inspection you want to suppress and select the necessary suppress action.