@Override
    public ExtensionHandler customize(ExtensionHandler delegate, Class<?> extensionType, Method method) {
        ExtensionHandler extensionHandler = delegate;

        List<Class<? extends Annotation>> annotationTypes = Stream.of(method, extensionType)
                .map(AnnotatedElement::getAnnotations)
                .flatMap(Arrays::stream)
                .map(Annotation::annotationType)
                .filter(type -> type.isAnnotationPresent(UseExtensionHandlerCustomizer.class))
                .collect(toCollection(ArrayList::new));

        Stream.of(method, extensionType)
                .map(e -> e.getAnnotation(ExtensionHandlerCustomizationOrder.class))
                .filter(Objects::nonNull)
                .findFirst()
                .ifPresent(order -> annotationTypes.sort(createComparator(order).reversed()));

        List<ExtensionHandlerCustomizer> customizers = annotationTypes.stream()
                .map(type -> type.getAnnotation(UseExtensionHandlerCustomizer.class))
                .map(UseExtensionHandlerCustomizer::value)
                .map(klass -> JdbiClassUtils.findConstructorAndCreateInstance(klass, EXTENSION_HANDLER_CUSTOMIZER_TYPES,
                        handle -> handle.invokeExact(extensionType, method)))
                .collect(toList());

        for (ExtensionHandlerCustomizer customizer : customizers) {
            extensionHandler = customizer.customize(extensionHandler, extensionType, method);
        }

        return extensionHandler;
    }
Applies decorations to method handlers, according to any {@link UseExtensionHandlerCustomizer} decorating annotations
present on the method. If multiple decorating annotations are present, the order of application can be controlled
using the {@link ExtensionHandlerCustomizationOrder} annotation.
core/src/main/java/org/jdbi/v3/core/extension/UseAnnotationExtensionHandlerCustomizer.java