docs: public void writeProcessedToIndex(BytesArray ba) {
          Assert.notNull(ba, "no data given");
          Assert.isTrue(ba.length() > 0, "no data given");
  
          lazyInitWriting();
          trivialBytesRef.reset();
          trivialBytesRef.add(ba);
          doWriteToIndex(trivialBytesRef);
      }