Hash (@NotNull HgRepository repository, @NotNull String branchToCompare) { Hash refHashToCompare = getHeavyBranchMainHash(repository, branchToCompare); return refHashToCompare != null ? refHashToCompare : findBookmarkHashByName(repository, branchToCompare); }