validate

fun validate(wrapperDeclaration: KSClassDeclaration, forTypeFqn: String): CollectionWrapperDescriptor?

Returns the validated descriptor, or null when the wrapper violates the contract (errors already logged — compilation fails).