public static @NotNull HgRepositoryManager getRepositoryManager(@NotNull Project project) {
    return project.getService(HgRepositoryManager.class);
  }
public static @NotNull HgRepositoryManager getRepositoryManager(@NotNull Project project)