diff --git a/plugins/groovy/resources/standardDsls/defaultMethods.gdsl b/plugins/groovy/resources/standardDsls/defaultMethods.gdsl index 99d17202dc30..de8217ef727f 100644 --- a/plugins/groovy/resources/standardDsls/defaultMethods.gdsl +++ b/plugins/groovy/resources/standardDsls/defaultMethods.gdsl @@ -37,6 +37,8 @@ def extractIterableParameter(PsiType type) { } private String removeWildcard(String componentType) { + componentType = componentType.replace("?extends", "? extends ") + if (componentType?.startsWith(Constants.WILDCARD_PREFIX)) { return componentType.substring(Constants.WILDCARD_PREFIX.size()) }