static bool anyRectOverlaps(Collection l, Rect r) { for (Rect x : l) if (rectsOverlap(x, r)) true; false; }