private Comparator<Class<? extends Annotation>> createDecoratorComparator(DecoratorOrder order) {
        List<Class<? extends Annotation>> ordering = Arrays.asList(order.value());

        return Comparator.comparingInt(type -> {
            int index = ordering.indexOf(type);
            return index == -1 ? ordering.size() : index;
        });
    }
Applies decorations to method handlers, according to any {@link SqlMethodDecoratingAnnotation decorating annotations}
present on the method. If multiple decorating annotations are present, the order of application can be controlled
using the {@link DecoratorOrder} annotation.
<p>
This decorator is registered out of the box and supports the deprecated {@link SqlMethodDecoratingAnnotation} annotations.
</p>
sqlobject/src/main/java/org/jdbi/v3/sqlobject/SqlMethodAnnotatedHandlerDecorator.java