example of using instance method ref as predicate