Fix Groovy type warning