boolean (PsiSwitchBlock block) { PsiSwitchLabelStatementBase label = PsiTreeUtil.getChildOfType(block.getBody(), PsiSwitchLabelStatementBase.class); return label instanceof PsiSwitchLabeledRuleStatement; }