PsiStatement[] (List<? extends PsiStatement> statementList) { // trailing 'break' is taken into account in myCanFallThrough int lastIndex = statementList.size() - 1; PsiStatement lastStatement = statementList.get(lastIndex); if (lastIndex > 0 && isBreakWithoutLabel(lastStatement)) { statementList = statementList.subList(0, lastIndex); } return statementList.toArray(PsiStatement.EMPTY_ARRAY); }