PsiJavaCodeReferenceElement () { PsiJavaCodeReferenceElement ref = dereference(myReference); if (ref == null) { ref = isStatic() ? getStaticReference() : getRegularReference(); myReference = new SoftReference<>(ref); } return ref; }