void (@NotNull final Project project, final Editor editor, final PsiFile file, DataContext dataContext) { ExtractMethodHandler.selectAndPass(project, editor, file, elements-> { if (!introduceStrategy(project, editor, file, elements)) { showErrorMessage(project, editor); } } ); }