def METHOD_NAME(self, request: PolicyRequest, event: Event) -> PolicyResult | None:
    """Check if `self.app` matches"""
    if self.app is None:
        return None
    return PolicyResult(self.app == event.app, "App matched.")