code: public void addBin(List<Chunk> chunksToAdd, long lastLocus) {
      assert chunks != null;
      contig = new Contig(contig.referenceName, contig.start, lastLocus);
      chunks.addAll(chunksToAdd);
      updateSpan();
    }
docs: Appends chunks from another bin to the list and moved the end position.