protected int getNumberOfOccurrences(PsiNameIdentifierOwner nameIdentifierOwner) {
    return getNumberOfOccurrences(nameIdentifierOwner, this::ignoreOccurrence);
  }
protected int getNumberOfOccurrences(PsiNameIdentifierOwner nameIdentifierOwner)