Using IntelliJ IDEA Live Templates
IntelliJ IDEA is an awesome IDE, and a lesser known and used feature is Live Templates. Live Templates enable you to use code snippets with just a few keystrokes. A lot of great ones are provided out-of-the-box by IntelliJ....