@NotNull
  private WCInfoWithBranches createInfoWithBranches(@NotNull WCInfo info, @NotNull RootUrlInfo rootUrlInfo) {
    SvnBranchConfigurationNew configuration =
      SvnBranchConfigurationManager.getInstance(myVcs.getProject()).get(rootUrlInfo.getVirtualFile());
    Ref<WCInfoWithBranches.Branch> workingCopyBranch = Ref.create();
    List<WCInfoWithBranches.Branch> branches = new ArrayList<>();

    Url trunk = configuration.getTrunk();
    if (trunk != null) {
      add(info.getUrl(), trunk, branches, workingCopyBranch);
    }

    for (Url branchUrl : configuration.getBranchLocations()) {
      for (SvnBranchItem branchItem : configuration.getBranches(branchUrl)) {
        add(info.getUrl(), branchItem.getUrl(), branches, workingCopyBranch);
      }
    }

    branches.sort(comparing(branch -> branch.getUrl().toDecodedString()));

    return new WCInfoWithBranches(info, branches, rootUrlInfo.getRoot(), workingCopyBranch.get());
  }
@NotNull
  private WCInfoWithBranches createInfoWithBranches(@NotNull WCInfo info, @NotNull RootUrlInfo rootUrlInfo)