void (@NotNull PsiSwitchStatement statement) { if (!isNonemptyRuleFormatSwitch(statement)) return; if (findReplacer(statement) == null) return; String message = JavaBundle.message("inspection.switch.expression.backward.statement.migration.inspection.name"); holder.registerProblem(statement.getFirstChild(), message, new ReplaceWithOldStyleSwitchFix()); }