CommitPresentation (@NotNull Project project, @NotNull VcsCommitMetadata commit, @NotNull Set<? super String> unresolvedHashes) { String rawMessage = commit.getFullMessage(); String hashAndAuthor = formatCommitHashAndAuthor(commit); Set<String> unresolvedHashesForCommit = findHashes(project, rawMessage); if (unresolvedHashesForCommit.isEmpty()) { return new CommitPresentation(project, commit.getRoot(), rawMessage, hashAndAuthor, MultiMap.empty()); } unresolvedHashes.addAll(unresolvedHashesForCommit); return new UnresolvedPresentation(project, commit.getRoot(), rawMessage, hashAndAuthor); }