{"ast_node_type":"other","tokens":[{"end":47,"kind":"keyword","start":0,"text":".and_then(|segment|"}]}
        .and_then(|segment| segment.name_ref())
    path.and_then(|path| path.segment())
        .map_or(false, |segment| segment == *name_ref)