Similar to #3838, we want to improve the general interoperability with Groovy in version 4.
Similar to #3838, we want to improve the general interoperability with Groovy in version 4.