Groovy: use method can be used with a list of classes