@SuppressWarnings("unchecked")
    public T disableNewlines() {
        currentState.disableNewline = true;
        return (T) this;
    }
Disables the automatic appending of newlines in the current state.

<p>Methods like {@link #write}, {@link #openBlock}, and {@link #closeBlock}
will not automatically append newlines when a state has this flag set.

@return Returns self.
smithy-utils/src/main/java/software/amazon/smithy/utils/AbstractCodeWriter.java