PsiJavaCodeReferenceElement () { final PsiJavaCodeReferenceElement refElement = createReference(); if (refElement == null) return null; if (isOnDemand() && refElement instanceof PsiJavaCodeReferenceElementImpl) { ((PsiJavaCodeReferenceElementImpl)refElement).setKindWhenDummy(PsiJavaCodeReferenceElementImpl.Kind.CLASS_FQ_NAME_KIND); } return refElement; }