@Override
    public boolean isAvailable(@NotNull Project project) {
      return !project.getService(HgRepositoryManager.class).getRepositories().isEmpty();
    }
@Override
    public boolean isAvailable(@NotNull Project project)