AnAction (@NotNull AnAction action, @NotNull @NonNls String actionId) { AnAction from = ActionManager.getInstance().getAction(actionId); if (from != null) { action.copyFrom(from); } ActionsCollector.getInstance().onActionConfiguredByActionId(action, actionId); return action; }