title: A warning that 'getAt' cannot be applied to 'Integer' in Groovy
body: <p>In this line of my Groovy code:</p>
  
  <pre><code>def document = someQuery().Document[0]
  </code></pre>
  
  <p>Method someQuery will return a Json Array and this worked well. Since editor doesn't know property, it underlined <code>Document</code>, and shows a warning at <code>[0]</code>, says:</p>
  
  <pre><code>'getAt' in 'org.codehaus.groovy.runtime.DefaultGroovyMethods' cannot be applied to '(java.lang.Integer)'
  </code></pre>
  
  <p>So what is the better way to do this to avoid this warning?</p>