void () { final String actionId = getActionId(); final AnAction action = ActionManager.getInstance().getAction(actionId); //noinspection HardCodedStringLiteral assertNotNull("Can find registered action with id=" + actionId, action); action.actionPerformed(AnActionEvent.createFromAnAction(action, null, "", DataManager.getInstance().getDataContext())); }