AnActionEvent (@NotNull DataContext dataContext) { if (myDataContext == dataContext) return this; AnActionEvent event = new AnActionEvent(myInputEvent, dataContext, myPlace, myPresentation, myActionManager, myModifiers, myIsContextMenuAction, myIsActionToolbar); event.setInjectedContext(myWorksInInjected); event.setUpdateSession(myUpdateSession); return event; }