title: Suppress potential NullPointerException in Android Studio
body: <p>This:
  </p>
  
  <pre><code>@Nullable
  Item[] mItems;
  
  public Item getItem(int position) {
      return mItems[position];
  }
  </code></pre>
  
  <p>produces the warning:</p>
  
  <pre class="lang-none prettyprint-override"><code>Array access 'mItems[position]' may produce NullPointerException
  </code></pre>
  
  <p>I want to suppress this warning (I know that <code>getItem()</code> will not be called if <code>mItems</code> is null).</p>
  
  <p>I've tried using the following annotations:</p>
  
  <ul>
  <li><code>@SuppressWarnings({"NullableProblems"})</code></li>
  <li><code>@SuppressWarnings({"null"})</code></li>
  </ul>
  
  <p>as well as with the <code>//noinspection</code> notation, but they're all not working.</p>
  
  <p>Using <code>@SuppressWarnings({"all"})</code> works, but it's obviously not what I'm looking for.</p>
  
  <p>Android Studio doesn't offer any suppression option when I hit <kbd>alt</kbd> + <kbd>enter</kbd>, just the options to add a (useless) null check.</p>