title: Java: if statement can be simplified (box contains point)
body: <p>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".</p>
  
  <pre><code>if(point.x &lt; minX || point.x &gt; maxX || point.y &lt; minY || point.y &gt; maxY)
      return false;
  </code></pre>
  
  <p>How can I simplify this?</p>