private static MyReader createFromObject(String prop, PairConsumer<JsonSchemaObjectImpl, JsonSchemaObjectImpl> propertySetter) {
    return (element, object, queue, virtualFile) -> {
      if (element.isObject()) {
        propertySetter.consume(object,
                               enqueue(queue, new JsonSchemaObjectImpl(virtualFile, getNewPointer(prop, object.getPointer())), element));
      }
    };
  }
private static MyReader createFromObject(String prop, PairConsumer<JsonSchemaObjectImpl, JsonSchemaObjectImpl> propertySetter)