PsiSwitchLabeledRuleStatement (@NotNull PsiCaseLabelElementList labelElementList, @NotNull PsiSwitchLabeledRuleStatement labeledRule) { PsiCaseLabelElement[] labelElements = labelElementList.getElements(); PsiSwitchLabeledRuleStatement anchor = labeledRule; for (int i = 1; i < labelElements.length; i++) { anchor = moveRuleAfter(labelElements[i], anchor); } return anchor; }