private Optional<ExtensionFactory> findFactoryFor(Class<?> extensionType) {
        for (ExtensionFactory factory : extensionFactories) {
            if (factory.accepts(extensionType)) {
                return Optional.of(factory);
            }
        }

        return Optional.empty();
    }
Create an extension instance if a factory accepts the extension type.
<br>
<b>This method requires access to a {@link HandleSupplier}, which is only useful either from
within an extension implementation of inside the Jdbi code. It should rarely be called by
user code.</b>

@param <E>            the extension type to create
@param extensionType  the extension type to create
@param handleSupplier A handle supplier object
@return an attached extension instance if a factory is found, {@link Optional#empty()} otherwise
core/src/main/java/org/jdbi/v3/core/extension/Extensions.java