@Override
  public Repository createRepositoryIfValid(@NotNull Project project, @NotNull VirtualFile root, @NotNull Disposable parentDisposable) {
    return HgUtil.isHgRoot(root) ? HgRepositoryImpl.getInstance(root, project, parentDisposable) : null;
  }
@Override
  public Repository createRepositoryIfValid(@NotNull Project project, @NotNull VirtualFile root, @NotNull Disposable parentDisposable)