public static void showNothingSelectedErrorMessage(final Editor editor,
                                                     final @NlsContexts.DialogTitle String refactoringName,
                                                     final String helpId,
                                                     final Project project) {
    String message = RefactoringBundle.getCannotRefactorMessage(JavaRefactoringBundle.message("error.wrong.caret.position.local.or.expression.name"));
    CommonRefactoringUtil.showErrorHint(project, editor, message, refactoringName, helpId);
  }
public static void showNothingSelectedErrorMessage(final Editor editor,
                                                     final @NlsContexts.DialogTitle String refactoringName,
                                                     final String helpId,
                                                     final Project project)