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