List<PsiCaseLabelElement> () { List<OldSwitchStatementBranch> branches = getWithFallthroughBranches(); Collections.reverse(branches); return StreamEx.of(branches).flatMap(branch -> { final PsiCaseLabelElementList caseLabelElementList = branch.myLabelStatement.getCaseLabelElementList(); if (caseLabelElementList == null) return StreamEx.empty(); return StreamEx.of(caseLabelElementList.getElements()); }).toList(); }