In many case collectMany() yields the same result as collect{}.flatten. It is easier to understand and more clearly transports the purpose.
protected static String
MESSAGE
Class
astVisitorClass
String
name
int
priority
Groovy Documentation