private static LogChunkImpl putRegularChunk(@NotNull ByteBuffer pageBuffer, int totalChunkSize,
                                                int chunkOffsetInBuffer,
                                                long chunkOffsetInFile,
                                                boolean reserveNextChunkIdField) {
      LogChunkImpl chunk = new LogChunkImpl(
        chunkOffsetInFile,
        pageBuffer,
        chunkOffsetInBuffer,
        totalChunkSize,
        /* isPadding: */ false,
        reserveNextChunkIdField
      );
      chunk.writeHeaderInitial();
      return chunk;
    }
private static LogChunkImpl putRegularChunk(@NotNull ByteBuffer pageBuffer, int totalChunkSize,
                                                int chunkOffsetInBuffer,
                                                long chunkOffsetInFile,
                                                boolean reserveNextChunkIdField)