PsiElement () { PsiJavaCodeReferenceElement referenceElement = (PsiJavaCodeReferenceElement)getElement(); return referenceElement != null ? referenceElement.advancedResolve(true).getElement() : null; }