public boolean getInsertTrailingNewline() {
        return trailingNewline;
    }
Checks if the AbstractCodeWriter inserts a trailing newline (if necessary) when
converted to a string.

@return The newline behavior (true to insert a trailing newline).
smithy-utils/src/main/java/software/amazon/smithy/utils/AbstractCodeWriter.java