Here, we could do `(new Rectangle(0, 0, size.width, size.height)).contains(point)` like on line 102