def METHOD_NAME(self, entity: Entity) -> bool:
    """Return whether to include the entity in the measurement."""
    subjects_to_ignore = self._parameter("subjects_to_ignore")
    if not subjects_to_ignore:
        return True
    return not match_string_or_regular_expression(
        entity["subject"],
        subjects_to_ignore,
    ) and not match_string_or_regular_expression(entity["subject_uuid"], subjects_to_ignore)