public static List<DecoratorAndOrder> collectDecorators(Class<?> clazz, Method method) {
        final List<DecoratorAndOrder> decorators = new ArrayList<>();

        // Class-level decorators are applied before method-level decorators.
        collectDecorators(decorators, AnnotationUtil.getAllAnnotations(clazz));
        collectDecorators(decorators, AnnotationUtil.getAllAnnotations(method));

        // Sort decorators by "order" attribute values.
        decorators.sort(Comparator.comparing(DecoratorAndOrder::order));
        return decorators;
    }
Returns a decorator list which is specified by {@link Decorator} annotations and user-defined
decorator annotations.
core/src/main/java/com/linecorp/armeria/internal/server/annotation/DecoratorAnnotationUtil.java