void (final @NotNull Project project, final PsiElement @NotNull [] elements, final @Nullable DataContext dataContext) { PsiElement element = elements.length == 1 ? elements[0] : null; if (element == null) { element = getElement(dataContext); } LOG.assertTrue(element != null); invoke(getEditor(dataContext), element, dataContext); }