public void addPolicies(final Collection<RegisteredServiceConsentPolicy> policy) {
        if (policies.addAll(policy.stream().filter(BeanSupplier::isNotProxy).toList())) {
            AnnotationAwareOrderComparator.sortIfNecessary(this.policies);
        }
    }
Add policies.

@param policy the policy
core/cas-server-core-authentication-attributes/src/main/java/org/apereo/cas/services/consent/ChainingRegisteredServiceConsentPolicy.java