void (@NotNull AnAction action, @NotNull DataContext dataContext, @NotNull String place, @Nullable InputEvent inputEvent, @Nullable Runnable onDone) { Presentation presentation = action.getTemplatePresentation().clone(); AnActionEvent event = AnActionEvent.createFromInputEvent(inputEvent, place, presentation, dataContext); event.setInjectedContext(action.isInInjectedContext()); if (lastUpdateAndCheckDumb(action, event, false)) { try { performActionDumbAwareWithCallbacks(action, event); } finally { if (onDone != null) { onDone.run(); } } } }