def METHOD_NAME(item: str, processed: List[str], order_map: Dict[str, int]):
    """Finds the first item in processed that should be below the given item, or None"""
    if item in order_map:
        order_index = order_map[item]
        processed.append(item)
        return next(
            (
                processed_item
                for processed_item in processed
                if order_map[processed_item] > order_index
            ),
            None,
        )