void (@NotNull JComponent component, @Nullable ActionGroup group) { if (!SystemInfoRt.isMac || !LoadingState.COMPONENTS_REGISTERED.isOccurred() || ApplicationManager.getApplication() == null) { return; } ActionGroup old = ClientProperty.get(component, ACTION_GROUP_KEY); if (old == null) { setActions(component, group); } else if (old instanceof DefaultActionGroup && group != null) { ((DefaultActionGroup)old).addAll(group); } }