title: Android Studio: disable warning "if statement can be simplified"
body: <p>Android studio marks warnings in Java code, some of them I consider useless and want to disable them. 
  I know I can configure Inspections that are enabled, but for some of these I can't find where it can be disabled. Then code is marked to have issues, and I want to have clean code so that I see real problems.
  Example of warning:</p>
  
  <pre><code>'if' statement can be replaced with 'return ...'
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/hi8Ap.png" rel="noreferrer"><img src="https://i.stack.imgur.com/hi8Ap.png" alt="enter image description here"></a></p>
  
  <p>And I don't want to put annotations to my code, rather I'd like to switch this off in IDE.
  Thanks</p>