void (@NotNull String actionId, @NotNull String groupId, @NotNull Map<String, AnAction> map) { ActionManager actionManager = ActionManager.getInstance(); DefaultActionGroup group = (DefaultActionGroup)actionManager.getAction(groupId); if (group == null) { return; } AnAction action = map.get(actionId); if (action != null) { actionManager.unregisterAction(actionId); map.remove(actionId); } else { action = ActionManager.getInstance().getAction(actionId); if (action != null) { group.remove(action, actionManager); } } }