For example, I want to type something like below in Jshell
new Random().nextInt()
and then use a keyboard shortcut to generate a local variable with the correct return type.
int x = new Random().nextInt()
Is there any in-built or user-defined shortcut to achieve the above? if not any workaround?