@Nullable
  private static Url initRoot(final Project project, final Url url) throws SvnBindException {
    final Ref<Url> result = new Ref<>();
    final Ref<SvnBindException> excRef = new Ref<>();

    ProgressManager.getInstance().runProcessWithProgressSynchronously(() -> {
      try {
        result.set(SvnUtil.getRepositoryRoot(SvnVcs.getInstance(project), url));
      }
      catch (SvnBindException e) {
        excRef.set(e);
      }
    }, message("progress.title.detecting.repository.root"), true, project);
    if (!excRef.isNull()) {
      throw excRef.get();
    }
    return result.get();
  }
@Nullable
  private static Url initRoot(final Project project, final Url url)