PsiElement (@NotNull PsiSwitchLabelStatement labelStatement, @NotNull PsiCaseLabelElement labelElement) { Branch branch = Branch.fromLabel(labelStatement); if (branch == null) { return null; } PsiSwitchLabelStatement newLabel = branch.addLabelAfter(labelElement, labelStatement); return branch.copyTo(newLabel); }