PsiJavaCodeReferenceElement (@NotNull PsiClassType type) { return type instanceof PsiClassReferenceType ? ((PsiClassReferenceType)type).getReference() : new LightClassTypeReference(myManager, type); }