MyReader (PairConsumer<JsonSchemaObject, String> propertySetter) { return (element, object, queue, virtualFile) -> { if (element.isStringLiteral()) { propertySetter.consume(object, getString(element)); } }; }