void (@NotNull Notification notification, @NotNull AnAction action, @Nullable DataContext context) { DataContext dataContext = context != null ? context : CustomizedDataContext.create(DataContext.EMPTY_CONTEXT, dataId -> KEY.is(dataId) ? notification : null); AnActionEvent event = AnActionEvent.createFromAnAction(action, null, ActionPlaces.NOTIFICATION, dataContext); IdeUiService.getInstance().performActionDumbAwareWithCallbacks(action, event); }