private static @NotNull SwitchBranch fromOldBranch(@NotNull OldSwitchStatementBranch branch,
                                                       @NotNull SwitchRuleResult result,
                                                       @NotNull List<? extends PsiElement> usedElements) {
      return new SwitchBranch(branch.isDefault(), branch.getCaseLabelElements(), branch.getGuardExpression(), result, usedElements);
    }
private static @NotNull SwitchBranch fromOldBranch(@NotNull OldSwitchStatementBranch branch,
                                                       @NotNull SwitchRuleResult result,
                                                       @NotNull List<? extends PsiElement> usedElements)