static L rectsToRectangles(Collection l) { new L x; for (Rect r : l) x.add(r.getRectangle()); ret x; }