@SuppressWarnings("unchecked")
    public T trimBlankLines(int trimBlankLines) {
        this.trimBlankLines = trimBlankLines;
        return (T) this;
    }
Ensures that no more than the given number of newlines can occur
in succession, removing consecutive newlines that exceed the given
threshold.

@param trimBlankLines Number of allowed consecutive newlines. Set to
 -1 to perform no trimming. Set to 0 to allow no blank lines. Set to
 1 or more to allow for no more than N consecutive blank lines.
@return Returns self.
smithy-utils/src/main/java/software/amazon/smithy/utils/AbstractCodeWriter.java