public static ListFilter MakeFilter(ListFilterDef def, FindDescription owner)
        {
            ListFilter filter = (ListFilter)Activator.CreateInstance(def.filterClass);

            filter.def   = def;
            filter.owner = owner;
            filter.PostMake();
            return(filter);
        }
 public override void ResolveReferences()
 {
     base.ResolveReferences();
     foreach (ListFilterDef def in DefDatabase <ListFilterDef> .AllDefs)
     {
         if (def.subFilters?.Contains(this) ?? false)
         {
             parent = def;
         }
     }
 }
 public void SetSelectedFilter(ListFilterDef def)
 {
     sel          = ListFilterMaker.MakeFilter(def, owner);
     sel.topLevel = false;
 }