void (@NotNull AnActionEvent e) { GuiEditor editor = FormEditingUtil.getEditorFromContext(e.getDataContext()); if (editor == null) { e.getPresentation().setEnabledAndVisible(false); } else { e.getPresentation().setEnabledAndVisible(true); final ArrayList<RadComponent> selection = FormEditingUtil.getSelectedComponents(editor); update(editor, selection, e); } }