def METHOD_NAME(
    cls,
    update: object,
    application: "Application",
) -> "CustomContext":
    if isinstance(update, WebhookUpdate):
        return cls(application=application, user_id=update.user_id)
    return super().METHOD_NAME(update, application)