// version 16: import lombok.NonNull; public record NonNullOnRecordSimple(@NonNull String a, @NonNull String b) { @java.lang.SuppressWarnings("all") public NonNullOnRecordSimple { if (a == null) { throw new java.lang.NullPointerException("a is marked non-null but is null"); } if (b == null) { throw new java.lang.NullPointerException("b is marked non-null but is null"); } } }