Code templates
Code templates have a full set of anonymous listeners and adapters available, which makes it easy to add anonymous classes as listeners. <kbd>Ctrl+J</kbd>
 in the editor brings up the list of templates.