private static List<DecoratorAndOrder> getDeclaredDecorators(@Nullable Object implementation,
                                                                 String methodName) {
        if (implementation == null) {
            return ImmutableList.of();
        }

        final Class<?> implClass = implementation.getClass();
        final String methodNameCamel = getCamelMethodName(methodName);
        for (Method m : implClass.getDeclaredMethods()) {
            if (m.getName().equals(methodName) || m.getName().equals(methodNameCamel)) {
                return DecoratorAnnotationUtil.collectDecorators(implClass, m);
            }
        }
        return ImmutableList.of();
    }
Sets the exception field of the specified {@code result} to the specified {@code cause}.
thrift/thrift0.21/src/main/java/com/linecorp/armeria/internal/common/thrift/ThriftFunction.java