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