static Function<String, Optional<ProjectionTransformer>> createServiceFactory(
            Iterable<ProjectionTransformer> transformers
    ) {
        Map<String, ProjectionTransformer> map = new HashMap<>();
        for (ProjectionTransformer transformer : transformers) {
            map.put(transformer.getName(), transformer);
        }
        return name -> Optional.ofNullable(map.get(name));
    }
Creates a {@code ProjectionTransformer} factory function using
the given transformers.

@param transformers Transformers used to build a factory function.
@return Returns the created factory.
smithy-build/src/main/java/software/amazon/smithy/build/ProjectionTransformer.java