IntentionAction (@NotNull PsiVariable variable, @NotNull PsiElement topBlock, @NotNull PsiElement readPoint) { PsiSwitchStatement switchStatement = findInitializingSwitch(variable, topBlock, readPoint); if (switchStatement != null) { String message = QuickFixBundle.message("add.default.branch.to.variable.initializing.switch.fix.name", variable.getName()); return QuickFixFactory.getInstance().createAddSwitchDefaultFix(switchStatement, message); } return null; }