@ApiStatus.Internal
  public static List<String> getBranchLikeFilterParameters(@NotNull GitRepository repository,
                                                           @NotNull VcsLogFilterCollection filterCollection,
                                                           @Nullable VcsLogRangeFilter.RefRange range) {
    VcsLogBranchFilter branchFilter = filterCollection.get(BRANCH_FILTER);
    VcsLogRevisionFilter revisionFilter = filterCollection.get(REVISION_FILTER);
    if (branchFilter == null && revisionFilter == null && range == null) {
      return GitLogUtil.LOG_ALL;
    }

    List<String> result = new ArrayList<>();

    if (branchFilter != null) {
      Collection<GitBranch> branches = ContainerUtil.newArrayList(ContainerUtil.concat(repository.getBranches().getLocalBranches(),
                                                                                       repository.getBranches().getRemoteBranches()));
      Collection<String> branchNames = GitBranchUtil.convertBranchesToNames(branches);
      Collection<String> predefinedNames = Collections.singletonList(GitUtil.HEAD);

      for (String branchName : ContainerUtil.concat(branchNames, predefinedNames)) {
        if (branchFilter.matches(branchName)) {
          result.add(branchName);
        }
      }
    }

    if (revisionFilter != null) {
      for (CommitId commit : revisionFilter.getHeads()) {
        if (commit.getRoot().equals(repository.getRoot())) {
          result.add(commit.getHash().asString());
        }
      }
    }

    if (range != null) {
      result.add(range.getExclusiveRef() + ".." + range.getInclusiveRef());
    }

    return result;
  }
@ApiStatus.Internal
  public static List<String> getBranchLikeFilterParameters(@NotNull GitRepository repository,
                                                           @NotNull VcsLogFilterCollection filterCollection,
                                                           @Nullable VcsLogRangeFilter.RefRange range)