private boolean hasPayloadBindings(Collection<HttpBinding> bindings) {
        for (HttpBinding binding : bindings) {
            if (binding.getLocation() == HttpBinding.Location.DOCUMENT
                    || binding.getLocation() == HttpBinding.Location.PAYLOAD) {
                return true;
            }
        }
        return false;
    }
Returns true if the response has a modeled body.

@param operation Operation to check.
@return Returns true if the operation has document or payload bindings.
smithy-model/src/main/java/software/amazon/smithy/model/knowledge/HttpBindingIndex.java