static Rect rectFromPointsOrNull(int x1, int y1, int x2, int y2) { ret nullIfEmptyRect(pointsRect(x1, y1, x2, y2)); }