boolean (@NotNull PsiSwitchBlock block) { if (!HighlightingFeature.ENHANCED_SWITCH.isAvailable(block)) { return false; } final PsiCodeBlock switchBody = block.getBody(); if (switchBody != null) { for (var child = switchBody.getFirstChild(); child != null; child = child.getNextSibling()) { if (child instanceof PsiSwitchLabelStatementBase && !isBeingCompleted((PsiSwitchLabelStatementBase)child)) { return child instanceof PsiSwitchLabeledRuleStatement; } } } return true; }