public AttributeCollector setReadOnly(ObjectNode node, boolean readOnly, SchemaGenerationContext generationContext) {
        if (readOnly) {
            node.put(generationContext.getKeyword(SchemaKeyword.TAG_READ_ONLY), true);
        }
        return this;
    }
Setter for "{@link SchemaKeyword#TAG_READ_ONLY}" attribute.

@param node schema node to set attribute on
@param readOnly attribute value to set
@param generationContext generation context, including configuration to apply when looking-up attribute values
@return this instance (for chaining)
jsonschema-generator/src/main/java/com/github/victools/jsonschema/generator/impl/AttributeCollector.java