void (@NotNull List<List<PsiSwitchLabelStatementBase>> elements, @NotNull PsiSwitchLabelStatementBase labelStatement, int switchBlockGroupCounter) { List<PsiSwitchLabelStatementBase> switchLabels; if (switchBlockGroupCounter < elements.size()) { switchLabels = elements.get(switchBlockGroupCounter); } else { switchLabels = new SmartList<>(); elements.add(switchLabels); } switchLabels.add(labelStatement); }