public void executeInCurrentThread(@NotNull final List<String> patchNames) {
    final Project project = myRepository.getProject();
    HgCommandResult result = new HgCommandExecutor(project)
      .executeInCurrentThread(myRepository.getRoot(), "qdelete", patchNames);
    if (HgErrorUtil.hasErrorsInCommandExecution(result)) {
      new HgCommandResultNotifier(project)
        .notifyError(QDELETE_ERROR,
                     result,
                     HgBundle.message("action.hg4idea.QDelete.error"),
                     HgBundle.message("action.hg4idea.QDelete.error.msg", patchNames.size()));
    }
    myRepository.update();
  }
public void executeInCurrentThread(@NotNull final List<String> patchNames)