@Override
    protected boolean matchesNonSimpleAttribute(final Attribute<O, A> attribute, final O object, final QueryOptions queryOptions) {
        return StreamSupport.stream(attribute.getValues(object, queryOptions).spliterator(), false)
            .anyMatch(value -> value != null && expectedClass.isAssignableFrom((Class) value));
    }
This is {@link IsAssignableFrom}.

@author Misagh Moayyed
@since 7.0.0
core/cas-server-core-services-registry/src/main/java/org/apereo/cas/services/query/IsAssignableFrom.java