docs: private void lazyInitWriting() {
          if (!writeInitialized) {
              this.writeInitialized = true;
              this.bulkProcessor = new BulkProcessor(client, resources.getResourceWrite(), settings);
              this.trivialBytesRef = new BytesRef();
              this.bulkEntryWriter = new BulkEntryWriter(settings, BulkCommands.create(settings, metaExtractor, client.clusterInfo.getMajorVersion()));
          }
      }