code: public FileIndex createAndDestroy() {
          checkIfDestroyed();
          destroyed = true;
          return new FileIndex(step, metadata, index, startingRecordNumber, lastAccessibleRecordNumber());
      }
docs: Creates {@code FileIndex} assembled by this builder.
  
  @return {@code FileIndex} assembled by this builder