List<GraphCommit<Integer>> (@NotNull List<? extends TimedVcsCommit> commits, @NotNull VirtualFile root) { return computeWithSpan(myTracer, LogData.CompactingCommits.getName(), (span -> { if (commits.isEmpty()) { return Collections.emptyList(); } List<GraphCommit<Integer>> list = new ArrayList<>(commits.size()); for (TimedVcsCommit commit : commits) { list.add(compactCommit(commit, root)); } return list; })); }