For a class like this:
open class ExplicitConstructor {
constructor(x:Int)
}
calling KSClassDeclaration.primaryConstructor returns a synthesized constructor with 0 arguments even though it should not exist as this class has only 1 constructor that receives a parameter.
Instead, it think it should be null.
Also, having a KSClassDeclaration.getAllConstructors() would be super handy.