title: Intellij warning: Boolean method foo() is always inverted
body: <p>I have this code:</p>
  
  <pre><code>private boolean changeNcheckIP() {
  
      //try 3 times before false
      for(int i = 0; i &lt; 3; i++) {
  
          if(changeIP() &amp;&amp; checkIP()) { return true; }
  
      }
  
      return false;
  
  }
  </code></pre>
  
  <p>Intellij give me an warning at <code>changeNcheckIP()</code>:</p>
  
  <p><code>Boolean method changeNcheckIP() is always inverted</code></p>
  
  <p>How can I fix that?</p>