IntelliJ Groovy Support
The Groovy plugin is bundled with IntelliJ IDEA and enabled by default.
1. Jenkinsfile was not recognized as Groovy file even after explicitly associating it with Groovy in "File Types".
Solution: removed Jenkinsfile association with ProjectPlainTextFileTypeManager in misc.xml.
Tools → Groovy Console