private static MyReader createDefinitionsConsumer(String defsOrDefinitions) {
    return (element, object, queue, virtualFile) -> {
      if (element.isObject()) {
        object.setDefinitionsMap(readInnerObject(getNewPointer(defsOrDefinitions, object.getPointer()), element, queue, virtualFile));
      }
    };
  }
private static MyReader createDefinitionsConsumer(String defsOrDefinitions)