Better to use `JavaGroovyEquivalents` than `GroovyJavaMethods`, so we don't pass through groovy code.