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