protected override bool ThingIsRelevant(Thing item) { var comp = item is ThingWithComps ? (item as ThingWithComps).GetComp<CompForbiddable>() : null; return comp != null && !comp.Forbidden; }