title: Groovy & IntelliJ: how to extract variable with explicit type declaration?
body: <p>How to extract variable (<kbd>cmd</kbd>+<kbd>alt</kbd>+<kbd>v</kbd>) in Groovy in IntelliJ to get this:</p>
  
  <pre><code>Car car = new Car()
  </code></pre>
  
  <p>instead of this?</p>
  
  <pre><code>def car = new Car()
  </code></pre>