void (VarargEventId eventId) { Class<? extends RenamePsiElementProcessor> renameProcessor = RenamePsiElementProcessor.forElement(myPrimaryElement).getClass(); eventId.log( myProject, RenameUsagesCollector.scopeType.with(getStatisticsCompatibleScopeName()), RenameUsagesCollector.searchInComments.with(isSearchInComments()), RenameUsagesCollector.searchInTextOccurrences.with(isSearchTextOccurrences()), RenameUsagesCollector.renameProcessor.with(renameProcessor), EventFields.Language.with(myPrimaryElement.getLanguage()) ); }