void (@NotNull GuiEditor editor, final ArrayList<? extends RadComponent> selection, final AnActionEvent e) { for(RadComponent c: selection) { if (!canFlatten(c)) { e.getPresentation().setVisible(false); return; } } }