void (@NotNull Project project, PsiElement @NotNull [] elements, DataContext dataContext) { if (elements.length != 1) { return; } if (elements[0] instanceof PsiField) { Editor editor = CommonDataKeys.EDITOR.getData(dataContext); invoke((PsiField)elements[0], editor); } }