void (AnAction action) { DataContext context = DataManager.getInstance().getDataContext(getEditorSearchComponent().getComponent()); AnActionEvent e = AnActionEvent.createFromDataContext(ActionPlaces.EDITOR_TOOLBAR, null, context); if (ActionUtil.lastUpdateAndCheckDumb(action, e, true)) { ActionUtil.performActionDumbAwareWithCallbacks(action, e); } }