private static @NotNull List<GitCommit> getUnmergedCommits(@NotNull GitRepository repository,
                                                             @NotNull String branchName,
                                                             @NotNull String baseBranch) {
    String range = baseBranch + ".." + branchName;
    try {
      return GitHistoryUtils.history(repository.getProject(), repository.getRoot(), range);
    }
    catch (VcsException e) {
      LOG.warn("Couldn't get `git log " + range + "` in " + getShortRepositoryName(repository), e);
    }
    return Collections.emptyList();
  }
private static @NotNull List<GitCommit> getUnmergedCommits(@NotNull GitRepository repository,
                                                             @NotNull String branchName,
                                                             @NotNull String baseBranch)