private @NotNull GraphCommit<Integer> compactCommit(@NotNull TimedVcsCommit commit, @NotNull VirtualFile root) {
    List<Integer> parents;
    Collection<? extends Hash> collection = commit.getParents();
    if (collection.isEmpty()) {
      parents = Collections.emptyList();
    }
    else {
      parents = new ArrayList<>(collection.size());
      for (Hash t : collection) {
        parents.add(myStorage.getCommitIndex(t, root));
      }
    }

    int index = myStorage.getCommitIndex(commit.getId(), root);
    myIndex.markForIndexing(index, root);
    return GraphCommitImpl.createIntCommit(index, parents, commit.getTimestamp());
  }
private @NotNull GraphCommit<Integer> compactCommit(@NotNull TimedVcsCommit commit, @NotNull VirtualFile root)