Presentation (@NotNull AnAction action) { AnActionEvent e = TestActionEvent.createTestEvent(action); if (ActionUtil.lastUpdateAndCheckDumb(action, e, true)) { ActionUtil.performActionDumbAwareWithCallbacks(action, e); } return e.getPresentation(); }