private void check(Context<? extends Trait> context, List<HttpBinding> bindings) {
        OpenApiConfig.HttpPrefixHeadersStrategy strategy = context.getConfig().getOnHttpPrefixHeaders();

        for (HttpBinding binding : bindings) {
            switch (strategy) {
                case WARN:
                    LOGGER.warning(createMessage(binding));
                    break;
                case FAIL:
                    throw new OpenApiException(createMessage(binding));
                default:
                    break;
            }
        }
    }
Checks for prefix headers in the input or output of an operation,
and handles the settings for throwing an exception or warning if
they're found.

<p>Custom values for this setting need to be handled in a
{@link OpenApiProtocol}.
smithy-openapi/src/main/java/software/amazon/smithy/openapi/fromsmithy/mappers/CheckForPrefixHeaders.java