filter away library that doesn't define any stuff with the right predicate.