getClassReferenceOrNull

abstract fun getClassReferenceOrNull(fqName: FqName): ClassReference?

Attempts to find the KtClassOrObject for the FqName first, then falls back to the ClassDescriptor if the Psi element cannot be found. This will happen if the class for FqName is not part of this compilation unit.