boolean (@NotNull PsiSwitchLabelStatementBase label) { if (!(label.getLastChild() instanceof PsiErrorElement)) return false; final PsiCaseLabelElementList list = label.getCaseLabelElementList(); return list != null && list.getElements().length == 1; }