void (@NotNull Project project, PsiElement @NotNull [] elements, DataContext dataContext) { if (dataContext != null) { final PsiFile file = CommonDataKeys.PSI_FILE.getData(dataContext); final Editor editor = CommonDataKeys.EDITOR.getData(dataContext); if (file != null && editor != null && !introduceStrategy(project, editor, file, elements)) { showErrorMessage(project, editor); } } }