private bool ThingMatchesSelectionConstraints(Thing thing) { return selectionConstraints.Count == 0 || selectionConstraints.ContainsKey(GetConstraintHashForThing(thing)); }