void (final AnActionEvent e) { final AnAction action = ActionManager.getInstance().getAction(myActionId); if (action == null || action instanceof TargetActionStub) { return; } if (!myActionInvoked.getAndSet(true)) { //final DataContext context = e.getDataContext(); //if (context instanceof DataManagerImpl.MyDataContext) { // // hack: macro.expand() can cause UI events such as showing dialogs ('Prompt' macro) which may 'invalidate' the datacontext // // since we know exactly that context is valid, we need to update its event count // ((DataManagerImpl.MyDataContext)context).setEventCount(IdeEventQueue.getInstance().getEventCount()); //} action.actionPerformed(e); } }