@Deprecated
  public void merge(@NotNull String branchName, @NotNull GitBrancher.DeleteOnMergeOption deleteOnMerge,
                    @NotNull List<? extends GitRepository> repositories) {
    GitReference branch = ContainerUtil.find(GitBranchUtil.getCommonLocalBranches(repositories), b -> b.getName().equals(branchName));
    if (branch == null) {
      branch = ContainerUtil.find(GitBranchUtil.getCommonRemoteBranches(repositories), b -> b.getName().equals(branchName));
    }

    merge(branch != null ? branch : new GitLocalBranch(branchName), deleteOnMerge, repositories);
  }
@Deprecated
  public void merge(@NotNull String branchName, @NotNull GitBrancher.DeleteOnMergeOption deleteOnMerge,
                    @NotNull List<? extends GitRepository> repositories)