private void processClasses(PsiReferenceList referenceList, @NotNull Set<PsiElement> visited) {
    if (referenceList == null) {
      return;
    }
    for (PsiJavaCodeReferenceElement referenceElement : referenceList.getReferenceElements()) {
      build(referenceElement, visited);
    }
  }
private void processClasses(PsiReferenceList referenceList, @NotNull Set<PsiElement> visited)