// No active block with a new matching line: create new block
block = new SOBIBlock(sobiFile, lineNum, line);
}
else if (block.getHeader().equals(headerMatcher.group()) && block.isMultiline()) {
// active multi-line block with a new matching line: extend block
block.extend(line);
}
else {
// active block does not match new line or can't be extended: create new block
blocks.add(block);
SOBIBlock newBlock = new SOBIBlock(sobiFile, lineNum, line);