def METHOD_NAME(self, name: str, query: str, parent: UUID = None) -> SavedSearch:
    """Create a new saved search and add it to the store."""
    search_id = uuid4()
    search = SavedSearch(id=search_id, name=name, query=query)
    if parent:
        self.add(search, parent)
    else:
        self.data.append(search)
        self.lookup[search_id] = search
    return search