private boolean matchesApiType(OpenApiConfig openApiConfig) {
                ApiGatewayConfig config = openApiConfig.getExtensions(ApiGatewayConfig.class);
                ApiGatewayConfig.ApiType setting = config.getApiGatewayType();

                // Never apply a mapper if API Gateway mappers are disabled. For
                // example, if a dependency brings them in on the classpath and that
                // dependency can't be removed.
                if (setting == ApiGatewayConfig.ApiType.DISABLED) {
                    return false;
                }

                List<ApiGatewayConfig.ApiType> supported = delegate.getApiTypes();

                // Handle the case where the mapper supports any API type.
                if (supported == null || supported.isEmpty()) {
                    return true;
                }

                return supported.contains(setting);
            }
Wraps and delegates to an {@link ApiGatewayMapper} IFF the configured
{@link ApiGatewayConfig.ApiType} matches the types of APIs that the
wrapped mapper applies to.

@param delegate Mapper to delegate to when it applies to the configured API type.
@return Returns the wrapped mapper.
smithy-aws-apigateway-openapi/src/main/java/software/amazon/smithy/aws/apigateway/openapi/ApiGatewayMapper.java