void (@NotNull AnActionEvent e) { PsiFile file = e.getData(CommonDataKeys.PSI_FILE); Language language = file != null ? file.getLanguage() : null; List<EventPair<?>> currentEventData = ContainerUtil.append( ActionsCollectorImpl.actionEventData(e), EventFields.CurrentFile.with(language) ); List<EventPair<?>> savedEventData = ourCurrentEventData; ourCurrentEventData = currentEventData; try { super.actionPerformed(e); } finally { ourCurrentEventData = savedEventData; } }