GROOVY-6094: Make the workaround more "local" to AntlrParserPlugin