void (TreeAction action) { Language language = null; FileType fileType = myFileEditor.getFile().getFileType(); if (fileType instanceof LanguageFileType) { language = ((LanguageFileType) fileType).getLanguage(); } ActionsEventLogGroup.ACTION_FINISHED.log( myProject, EventFields.PluginInfoFromInstance.with(action), EventFields.ActionPlace.with(ActionPlaces.FILE_STRUCTURE_POPUP), EventFields.CurrentFile.with(language), ActionsEventLogGroup.ACTION_CLASS.with(action.getClass()), ActionsEventLogGroup.ACTION_ID.with(action.getClass().getName()) ); }