private void addChunkToModel(Chunk chunk, List<String> lines, long startByte, long endByte,
			boolean addToFront) {

		if (!lines.isEmpty()) {
			chunk.start = startByte;
			chunk.end = endByte;
			chunk.linesInChunk = lines.size();

			if (addToFront) {
				model.add(0, chunk);
			}
			else {
				model.add(chunk);
			}
		}
	}
Adds the given chunk to the model.

@param chunk the chunk to add
@param lines the lines included in the chunk
@param startByte the start byte within the file this chunk represents
@param endByte the end byte within the file this chunk represents
@param addToFront if true, adds the chunk to the front of the chunk list
Ghidra/Framework/Project/src/main/java/ghidra/framework/main/logviewer/model/ChunkReader.java