GROOVY-7113: Stubs can miss methods defined in traits