GROOVY-6219: Inferred return type of closures used as method call parameters is not used in method selection