boolean (@NotNull PsiCodeBlock switchBody) { for (PsiStatement statement : switchBody.getStatements()) { if (statement instanceof PsiSwitchLabelStatement && SwitchUtils.isUnconditionalLabel((PsiSwitchLabelStatement)statement)) { // TODO check because isUnconditionalLabel was chanched return true; } } return false; }