void (@NotNull final GuiEditor editor, final ArrayList<? extends RadComponent> selection, final AnActionEvent e) { boolean visible = GroupButtonsAction.allButtons(selection); e.getPresentation().setVisible(visible); e.getPresentation().setEnabled(visible && canUngroup(editor, selection)); }