void (@NotNull final Project project, final PsiElement @NotNull [] elements, @Nullable final DataContext dataContext) { if (elements.length != 1) return; Editor editor = dataContext != null ? CommonDataKeys.EDITOR.getData(dataContext) : null; invokeOnElement(project, editor, elements[0]); }