I have the following statement to check if a Vector2D is within a box, and IntelliJ gives me a warning: "if statement can be simplified".
if(point.x < minX || point.x > maxX || point.y < minY || point.y > maxY)
return false;
How can I simplify this?