List<Change> (@NotNull Project project, @NotNull VcsShortCommitDetails commit, @NotNull List<VcsFileStatusInfo> changes, int parentIndex) { String parentHash = null; if (parentIndex < commit.getParents().size()) { parentHash = commit.getParents().get(parentIndex).asString(); } return git4idea.history.GitChangesParser.parse(project, commit.getRoot(), changes, commit.getId().asString(), new Date(commit.getCommitTime()), parentHash); }