Add ParameterizedRecordCodec so that top level records can contain nested generic records eg:
public record TestRecordWithListGenericConcrete( @BsonId ObjectId id, TestRecordWithListGeneric<TestRecordEmbedded> nestedRecords) { } public record TestRecordWithListGeneric<T>( List<T> nestedRecords) { }