`prev_sibling.map(|prev_sibling| prev_sibling.get_after_node().or_else(|| Some(prev_sibling))` instead of this match.