Groovy & IntelliJ:如何提取具有显式类型声明的变量?

Groovy & IntelliJ: how to extract variable with explicit type declaration?

如何在[=23中提取变量(cmd+alt+v) =] 在 IntelliJ 中得到这个:

Car car = new Car()

而不是这个?

def car = new Car()

def 上使用 Shift + Tab 并选择类型。下次 Intellij 将使用指定的类型。