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