void () { ActionManager actionManager = ActionManager.getInstance(); AnAction action = actionManager.getAction("GenerateDTD"); action.actionPerformed(AnActionEvent.createFromAnAction(action, null, "", DataManager.getInstance().getDataContext())); }