public static List <List <Expansion> > GetExpansions(this SelectExpandQueryOption clause)
        {
            if (clause?.SelectExpandClause == null)
            {
                return(new List <List <Expansion> >());
            }

            return(clause.SelectExpandClause.SelectedItems.GetExpansions(new HashSet <string>(clause.GetSelects())));
        }