MyReader () { return (element, object, queue, virtualFile) -> { if (element.isBooleanLiteral()) { object.setAdditionalPropertiesAllowed(getBoolean(element)); } else if (element.isObject()) { object.setAdditionalPropertiesSchema(enqueue(queue, new JsonSchemaObject(virtualFile, getNewPointer("additionalProperties", object.getPointer())), element)); } }; }