void (@NotNull String actionId) { AnAction action = ActionManager.getInstance().getAction(actionId); assertNotNull(action); @SuppressWarnings("deprecation") DataContext context = DataManager.getInstance().getDataContext(); AnActionEvent event = AnActionEvent.createFromAnAction(action, null, "", context); assertTrue(ActionUtil.lastUpdateAndCheckDumb(action, event, false)); assertTrue(event.getPresentation().isEnabled()); ActionUtil.performActionDumbAwareWithCallbacks(action, event); }