fn entity_predicate_matches_entity( predicate: &EntityPredicate, entity: &dyn Entity, ) -> Option<bool>