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