void (@NotNull PsiElementUsage usage) { Class<? extends PsiReference> referenceClass = UsageReferenceClassProvider.Companion.getReferenceClass(usage); PsiElement element = usage.getElement(); if (element != null && referenceClass != null) { Language language = element.getLanguage(); if (myReportedReferenceClasses.add(Pair.create(referenceClass, language))) { UsageViewStatisticsCollector.logUsageShown(myProject, referenceClass, language, this); } } }