def METHOD_NAME(self, obj):
    if self.context:
        watched_thread = self.context.get("watched_thread")
        if watched_thread:
            if watched_thread.send_emails:
                return ThreadNotifications.SITE_AND_EMAIL
            return ThreadNotifications.SITE_ONLY
        watched_threads = self.context.get("watched_threads")
        if watched_threads:
            return watched_threads.get(obj.id)
    return None