@Nullable
  public static SvnBranchConfigurationNew detect(@NotNull Project project, @NotNull VirtualFile root) {
    SvnBranchConfigurationNew result = null;
    SvnVcs vcs = SvnVcs.getInstance(project);
    Url rootUrl = SvnUtil.getUrl(vcs, VfsUtilCore.virtualToIoFile(root));

    if (rootUrl != null) {
      try {
        result = detect(vcs, rootUrl);
      }
      catch (VcsException e) {
        LOG.info(e);
      }
    }
    else {
      LOG.info("Directory is not a working copy: " + root.getPresentableUrl());
    }

    return result;
  }
@Nullable
  public static SvnBranchConfigurationNew detect(@NotNull Project project, @NotNull VirtualFile root)