@Override
  public @Nullable RepositoryLocation getLocationFor(@NotNull FilePath filePath) {
    VirtualFile repo = VcsUtil.getVcsRootFor(project, filePath);
    if (repo == null) {
      return null;
    }
    return new HgRepositoryLocation(repo.getUrl(), repo);
  }
@Override
  public @Nullable RepositoryLocation getLocationFor(@NotNull FilePath filePath)