void (@NotNull Editor editor, boolean assertActionIsEnabled, @NotNull AnAction action) { AnActionEvent event = AnActionEvent.createFromAnAction(action, null, "", createEditorContext(editor)); if (ActionUtil.lastUpdateAndCheckDumb(action, event, false)) { ActionUtil.performActionDumbAwareWithCallbacks(action, event); } else if (assertActionIsEnabled) { fail("Action " + action + " is disabled"); } }