PsiJavaCodeReferenceElement () { if (isOnDemand()) { return getImportReference(); } else { PsiImportStaticReferenceElement memberReference = getMemberReference(); if (memberReference != null) { return memberReference.getClassReference(); } else { return null; } } }