Enhance the specification of Predicate#getReferencedAttributes.