@Override
    public OpenApi after(Context<? extends Trait> context, OpenApi openApi) {
        List<String> binaryTypes = supportedMediaTypes(context).sorted().collect(Collectors.toList());

        if (!binaryTypes.isEmpty()) {
            LOGGER.fine(() -> "Adding recognized binary types to model: " + binaryTypes);
            return openApi.toBuilder()
                    .putExtension(EXTENSION_NAME,
                            Stream.concat(binaryTypes.stream(), Stream.of(DEFAULT_BINARY_TYPE))
                                    .distinct()
                                    .map(Node::from)
                                    .collect(ArrayNode.collect()))
                    .build();
        }

        return openApi;
    }
Adds API Gateway binary media types as a top-level key in the OpenAPI model
named {@code x-amazon-apigateway-binary-media-types}.

<p>This data is used by API Gateway to determine which content-types do
not contain UTF-8 data.
smithy-aws-apigateway-openapi/src/main/java/software/amazon/smithy/aws/apigateway/openapi/AddBinaryTypes.java