I have been doing a little bit of the work required for Groovy 4 (on master). While I expect it isn't usual to mark tests deprecated, I have been doing that in the GROOVY_3_0_X branch for tests which will be deleted in master since they specifically test antlr2 functionality. It keeps Intellij somewhat happier about usage of deprecated (in this case antlr2 specific) methods and can act as a reminder to us when changing those tests to consider the antlr4 impact or whether modifying the antlr2 test is what we have in mind. Let me know if you can think of a better way, otherwise I'll continue this approach - shouldn't be many more tests actually that have that specific characteristic.
The org.apache.groovy.parser.antlr4.TestUtils tests will need a different approach. Cheers, Paul.