public static @NotNull Map<String, String> readFromRefsFiles(final @NotNull File refsRootDir,
                                                               final @NotNull String prefix,
                                                               GitRepositoryFiles repositoryFiles) {

    HashMap<String, String> result = new HashMap<>();
    BiConsumer<String, String> collectingConsumer = (s, s2) -> result.put(s, s2);
    readFromRefsFiles(refsRootDir, prefix, repositoryFiles, collectingConsumer);
    return result;
  }
public static @NotNull Map<String, String> readFromRefsFiles(final @NotNull File refsRootDir,
                                                               final @NotNull String prefix,
                                                               GitRepositoryFiles repositoryFiles)