static Dimension dimensionPlus(int w, int h, Dimension d) { ret d == null ?: new Dimension(d.width+w, d.height+h); }