@Nullable
  public static Pair<WorkingCopyInfo, Url> selectWorkingCopy(final Project project,
                                                             final Url currentBranch,
                                                             @NotNull Url targetBranch,
                                                             final boolean showIntegrationParameters,
                                                             final String selectedLocalBranchPath,
                                                             @DialogTitle @Nullable String dialogTitle) {
    final IntegratedSelectedOptionsDialog dialog = new IntegratedSelectedOptionsDialog(project, currentBranch, targetBranch);
    if (!showIntegrationParameters) {
      dialog.selectWcopyRootOnly();
    }
    if (selectedLocalBranchPath != null) {
      dialog.setSelectedWcPath(selectedLocalBranchPath);
    }
    if (dialogTitle != null) {
      dialog.setTitle(dialogTitle);
    }
    if (dialog.showAndGet()) {
      StoreUtil.saveDocumentsAndProjectSettings(project);
      dialog.saveOptions();

      final WorkingCopyInfo info = dialog.getSelectedWc();
      if (info != null) {
        final File file = new File(info.getLocalPath());
        if ((!file.exists()) || (!file.isDirectory())) {
          Messages.showErrorDialog(message("dialog.message.integrate.changes.error.target.not.dir"),
                                   message("dialog.title.integrate.to.branch"));
          return null;
        }

        final Url targetUrl = realTargetUrl(SvnVcs.getInstance(project), info, targetBranch);

        if (targetUrl == null) {
          Messages.showErrorDialog(message("dialog.message.integrate.changes.error.not.versioned"),
                                   message("dialog.title.integrate.to.branch"));
          return null;
        }
        return Pair.create(info, targetUrl);
      }
    }
    return null;
  }
@Nullable
  public static Pair<WorkingCopyInfo, Url> selectWorkingCopy(final Project project,
                                                             final Url currentBranch,
                                                             @NotNull Url targetBranch,
                                                             final boolean showIntegrationParameters,
                                                             final String selectedLocalBranchPath,
                                                             @DialogTitle @Nullable String dialogTitle)