private @NotNull DetailedLogData loadSomeCommitsOnTaggedBranches(@NotNull VirtualFile root,
                                                                   int commitCount,
                                                                   @NotNull Collection<String> unmatchedTags) throws VcsException {
    return computeWithSpanThrows(myTracer, LoadingCommitsOnTaggedBranch.getName(), span -> {
      span.setAttribute("rootName", root.getName());

      List<String> params = new ArrayList<>();
      params.add("--max-count=" + commitCount);

      Set<VcsRef> refs = new HashSet<>();
      Set<VcsCommitMetadata> commits = new HashSet<>();
      VcsFileUtil.foreachChunk(new ArrayList<>(unmatchedTags), 1, tagsChunk -> {
        String[] parameters = ArrayUtilRt.toStringArray(ContainerUtil.concat(params, tagsChunk));
        DetailedLogData logData = GitLogUtil.collectMetadata(myProject, root, parameters);
        refs.addAll(logData.getRefs());
        commits.addAll(logData.getCommits());
      });

      return new LogDataImpl(refs, new ArrayList<>(commits));
    });
  }
private @NotNull DetailedLogData loadSomeCommitsOnTaggedBranches(@NotNull VirtualFile root,
                                                                   int commitCount,
                                                                   @NotNull Collection<String> unmatchedTags)