void (@NotNull Project project, Editor editor) { final String message = RefactoringBundle .getCannotRefactorMessage( RefactoringBundle.message("is.not.supported.in.the.current.context", IntroduceFunctionalVariableAction.getRefactoringName())); showErrorMessage(project, editor, message); }