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