RejectNonSelectableItems()

Removes recursively legend items that correspond to unselectable layers and feature types from the collections Legend::LegendItems and LegendItem::LegendItems (see the properties Layer::Selectable and FeatureType::Selectable).