PsiElement (@NotNull PsiSwitchLabelStatement labelToMove, @NotNull PsiSwitchLabelStatement anchor) { Branch branch = Branch.fromLabel(anchor); if (branch == null) { return null; } return branch.moveAfter(labelToMove); }