if (test.y > result.y) { result.y = test.y;
if (test.height > result.height) { result.height = test.height;
    private void moveIfGreater(Point result, Point test) {        if (test.x > result.x) {            result.x = test.x;        }        if (test.y > result.y) {            result.y = test.y;        }    }