isJavaRecord
Returns true if this class is a Java record.
This method is compatible with JVM 1.8+ by using reflection to check for the Class.isRecord() method which was introduced in Java 16. On older JVMs, this will always return false.