PsiStatement (@Nullable PsiElement label) { PsiStatement lastStatement = null; for (PsiStatement statement = getNextSiblingOfType(label, PsiStatement.class); statement != null && !(statement instanceof PsiSwitchLabelStatement); statement = getNextSiblingOfType(statement, PsiStatement.class)) { lastStatement = statement; } return lastStatement; }