public boolean getTrimTrailingSpaces() {
        return currentState.trimTrailingSpaces;
    }
Returns true if the trailing spaces in the current state are trimmed.

@return Returns the trailing spaces setting of the current state.
smithy-utils/src/main/java/software/amazon/smithy/utils/AbstractCodeWriter.java