private String dumpContentAroundId(long aroundChunkId,
                                     int chunksAround) throws IOException {
    StringBuilder sb = new StringBuilder("Log content around id: " + aroundChunkId + " +/- " + chunksAround +
                                         " (first uncommitted offset: " + header.firstUnCommittedOffset() +
                                         ", first unallocated: " + header.firstUnAllocatedOffset() + ")\n");
    forEachChunk(chunk -> {
      long chunkId = chunk.id();
      ByteBuffer buffer = chunk.read();
      long nextRecordId = chunkIdToOffset(
        nextChunkOffset(chunkIdToOffset(chunkId), buffer.remaining())
      );
      //MAYBE RC: only dump 'questionableRecord'? Seems like records around are of little use
      boolean insideQuestionableRecord = (chunkId <= aroundChunkId && aroundChunkId <= nextRecordId);
      boolean insideNeighbourRegion = (aroundChunkId - chunksAround <= chunkId
                                       && chunkId <= aroundChunkId + chunksAround);

      if (insideQuestionableRecord || insideNeighbourRegion) {
        String bufferAsHex = IOUtil.toHexString(buffer);
        sb.append(insideQuestionableRecord ? "*" : "")
          .append("[id: ").append(chunkId).append("][offset: ").append(chunkIdToOffset(chunkId)).append("][hex: ")
          .append(bufferAsHex).append("]\n");
      }
      return chunkId <= aroundChunkId + chunksAround;
    });
    return sb.toString();
  }
private String dumpContentAroundId(long aroundChunkId,
                                     int chunksAround)