@SuppressWarnings("PMD.UnnecessaryCast")
    private static Collection<ConfigCustomizer> buildConfigCustomizer(Class<?> extensionType,
            Method method,
            Stream<AnnotatedElement> elements,
            ConfigurerMethod consumer) {
        return elements.flatMap(ae -> Arrays.stream(ae.getAnnotations()))
                .filter(a -> a.annotationType().isAnnotationPresent(UseExtensionConfigurer.class))
                .map(a -> {
                    UseExtensionConfigurer meta = a.annotationType().getAnnotation(UseExtensionConfigurer.class);
                    Class<? extends ExtensionConfigurer> klass = meta.value();
                    ExtensionConfigurer configurer = JdbiClassUtils.findConstructorAndCreateInstance(klass, EXTENSION_CONFIGURER_TYPES,
                            handle -> handle.invokeExact(a, extensionType, method));

                    return (ConfigCustomizer) config -> consumer.configure(configurer, config, a);

                })
                .collect(Collectors.toList());
    }
Applies configuration customizers according to {@link UseExtensionConfigurer} decorating annotations.
present on the method.
core/src/main/java/org/jdbi/v3/core/extension/UseAnnotationConfigCustomizerFactory.java