'Shortcut to wrap highlighted text into a System.out.println() on intellij

Is there a way to highlight a text and put it into a System.out.println() by using a shortcut on intellij ?

Here's what I'm looking for :
1. I highlight dog.getName() using my mouse
2. I use a shortcut
3. Result : System.out.println(dog.getName());



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source