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