Use Set#any? method in trait matcher