private static @Nullable VcsFullCommitDetails getCommitDetails(@NotNull Project project,
                                                                 @NotNull VirtualFile root,
                                                                 @NotNull VcsRevisionNumber number) throws VcsException {
    String[] hashParameters = GitHistoryUtils.formHashParameters(project, Collections.singleton(number.asString()));
    List<GitCommit> gitCommits = GitHistoryUtils.history(project, root, hashParameters);
    if (gitCommits.size() != 1) return null;

    return gitCommits.get(0);
  }
private static @Nullable VcsFullCommitDetails getCommitDetails(@NotNull Project project,
                                                                 @NotNull VirtualFile root,
                                                                 @NotNull VcsRevisionNumber number)