GROOVY-5078: check for duplicated methods