Presentation (AnAction action, ActionToolbarImpl toolbar) { AnActionEvent event = TestActionEvent.createTestToolbarEvent(toolbar.getPresentation(action)); action.update(event); return event.getPresentation(); }