void (@NotNull PsiJavaCodeReferenceElement ref) { JavaResolveResult result = doVisitReferenceElement(ref); if (result != null) { PsiElement resolved = result.getElement(); if (!hasErrorResults()) add(GenericsHighlightUtil.checkRawOnParameterizedType(ref, resolved)); if (!hasErrorResults() && resolved instanceof PsiModifierListOwner) { HighlightingFeature.checkPreviewFeature(ref, myPreviewFeatureVisitor); } if (!hasErrorResults()) { HighlightMethodUtil.checkAmbiguousConstructorCall(getProject(), ref, resolved, ref.getParent(), myJavaSdkVersion, myErrorSink); } } }