toClassNameOrNull

fun KSType.toClassNameOrNull(): ClassName?

Returns the ClassName representation of this KSType IFF it's a KSClassDeclaration or KSTypeAlias.

If it's unable to resolve to a ClassName for any reason, this returns null.