Extension that provides various utility methods for Operations, such as checking
if an operation is a block-level insertion, a new line, or contains embedded data.
Extension that calculates the total effective length of a list of Operations.
It accumulates the length of each operation in the list to return the total length.
Extension that adds a getter to the Operation class to retrieve the effective length
of the operation. The length is only valid for insert operations and throws an exception
if the operation is a retain or delete.