void (List<RadComponent> selection) { boolean oldVisible = isVisible(myDynamicGroup); if (myDynamicGroup.getChildrenCount() > 0) { for (AnAction action : myDynamicGroup.getChildActionsOrStubs()) { action.unregisterCustomShortcutSet(myShortcuts); } myDynamicGroup.removeAll(); } addSelectionActions(selection, myDynamicGroup); if (oldVisible || isVisible(myDynamicGroup)) { update(); } }