boolean (@NotNull PsiSwitchBlock block) { PsiFile file = block.getContainingFile(); SwitchBlockHighlightingModel model = createInstance(PsiUtil.getLanguageLevel(file), block, file); if (model == null) return false; ModCommandAction templateAction = QuickFixFactory.getInstance().createAddSwitchDefaultFix(block, null).asModCommandAction(); if (templateAction == null) return false; AtomicBoolean found = new AtomicBoolean(); model.checkSwitchLabelValues(builder -> { HighlightInfo info = builder.create(); if (info != null) { found.set(found.get() || info.findRegisteredQuickFix((desc, range) -> { ModCommandAction action = desc.getAction().asModCommandAction(); return action != null && action.getClass().equals(templateAction.getClass()); })); } }); return found.get(); }