static L filterRectsByHeightRange(Collection l, IntRange range) { ret [Rect r : l | intRangeContains(range, r.h)]; }