AnAction (@NotNull AnAction action) { if (action instanceof ActionStub) { AnAction newAction = ActionManager.getInstance().getActionOrStub(((ActionStub)action).getId()); if (newAction != null) return newAction; } return action; }