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) { invokeOnElements(project, editor, file, elements); } } }