private static @NotNull HgRepositoryManager getHgRepoManager(@NotNull Project project) {
    return project.getService(HgRepositoryManager.class);
  }
private static @NotNull HgRepositoryManager getHgRepoManager(@NotNull Project project)