title: Problems with IDE when requiring permission
body: <p>After refactoring permission check in a method, so I don't repeat my self, the IDE brings an error. That's reasonable because Android studio can't be sure if I'm asking for permission or just do some if(true) trick.</p>
  
  <p>Question: Does the <code>@SuppressLint("MissingPermission")</code> solve the case? Should I do it? Or should I just repeat myself in these situations?</p>
  
  <p><a href="https://i.stack.imgur.com/z4pd4.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/z4pd4.png" alt="enter image description here"></a></p>
  
  <p>And the <code>locationPermissionNotGranted()</code> is here:</p>
  
  <pre><code>fun locationPermissionNotGranted(context: Context) = ContextCompat.checkSelfPermission(context, 
  Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED &amp;&amp; ContextCompat.checkSelfPermission(context, 
  Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED
  </code></pre>