public static void unableToStartWarning(Project project, @NotNull Editor editor) {
    StartMarkAction startMarkAction = StartMarkAction.canStart(editor);
    String message = IdeBundle.message("dialog.message.command.not.finished.yet", startMarkAction.getCommandName());
    Document oldDocument = startMarkAction.getDocument();
    if (oldDocument != editor.getDocument()) {
      int exitCode = Messages.showYesNoDialog(project, message,
                                                    RefactoringBundle.getCannotRefactorMessage(null),
                                                    RefactoringBundle.message("inplace.refactoring.continue.started"),
                                                    RefactoringBundle.message("inplace.refactoring.abandon.started"), Messages.getErrorIcon());
      navigateToStarted(oldDocument, project, exitCode, startMarkAction.getCommandName());
    }
    else {
      CommonRefactoringUtil.showErrorHint(project, editor, message, RefactoringBundle.getCannotRefactorMessage(null), null);
    }
  }
public static void unableToStartWarning(Project project, @NotNull Editor editor)