{"ast_node_type":"other","tokens":[{"end":82,"kind":"keyword","start":0,"text":"Some(Adt::Enum(e))"}]}
        Some(Adt::Enum(e)) => Some(ExtendedEnum::enum_(sema.db, e, &ty, self_ty)),
    sema.type_of_expr(expr)?.adjusted().autoderef(sema.db).find_map(|ty| match ty.as_adt() {
        _ => ty.is_bool().then_some(ExtendedEnum::Bool),