static @NotNull GitChangesCollector collect(@NotNull Project project,
                                     @NotNull GitRepository repository,
                                     @NotNull List<GitFileStatus> changes) throws VcsException {
    VcsRevisionNumber head = getHead(repository);

    GitChangesCollector collector = new GitChangesCollector(project, repository.getRoot(), head);
    collector.collectChanges(changes);
    return collector;
  }
static @NotNull GitChangesCollector collect(@NotNull Project project,
                                     @NotNull GitRepository repository,
                                     @NotNull List<GitFileStatus> changes)