Hello! Speaking of the reflection API, do we have a way to get a primary constructor of a record class? Sure we can do something like
cls.getConstructor(Arrays.stream(cls.getRecordAccessors()).map(Method::getReturnType).toArray()) But it looks like a bit verbose. Something like cls.getPrimaryConstructor() (throwing on non-records) looks better. What do you think? With best regards, Tagir Valeev.