title: How get by code list of default Groovy imports
body: <p>I want to get <strong>programmatically</strong> in any form a list of default packages imported by Groovy. Like the documentation says:</p>
  
  <p>All these packages and classes are imported by default, i.e. you do not have to use an explicit import statement to use them:
      java.io.*</p>
  
  <pre><code>java.lang.*
  
  java.math.BigDecimal
  
  java.math.BigInteger
  
  java.net.*
  
  java.util.*
  
  groovy.lang.*
  
  groovy.util.*
  </code></pre>
  
  <p>In others words, check whether import is required (for any classes out of this list) or not.
  The List should be valid for current version and potentially for future versions.</p>