int (PsiNameIdentifierOwner nameIdentifierOwner, Predicate<? super PsiReference> ignoreOccurrence) { return getNumberOfOccurrences(nameIdentifierOwner, ignoreOccurrence, scope -> ReferencesSearch.search(nameIdentifierOwner, scope)); }