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