I can confirm that the issue is related to upgrade to Groovy 4 introduce by XWiki 16.
This is fixed in the code and just waiting for a new release of the extension to be available (I'll try to figure out if I can do it this week).