@NotNull
  private Collection<HgNameWithHashInfo> readReferences(@NotNull File fileWithReferences) {
    HashSet<HgNameWithHashInfo> result = new HashSet<>();
    readReferences(fileWithReferences, result);
    return result;
  }
@NotNull
  private Collection<HgNameWithHashInfo> readReferences(@NotNull File fileWithReferences)