public SchemaGeneratorConfigPart<M> withReadOnlyCheck(Predicate<M> check) {
        this.readOnlyChecks.add(check);
        return this;
    }
Setter for read-only check.

@param check how to determine whether a given reference should be deemed read-only
@return this config part (for chaining)
jsonschema-generator/src/main/java/com/github/victools/jsonschema/generator/SchemaGeneratorConfigPart.java