void (@NotNull GrNamedArgument argument) { GrArgumentLabel label = argument.getLabel(); if (label != null) { PsiElement pparent = argument.getParent().getParent(); if (pparent instanceof GrCall && resolvesToDefaultConstructor(((GrCall)pparent))) { final GroovyResolveResult resolveResult = label.advancedResolve(); PsiElement resolved = resolveResult.getElement(); PsiType type = resolved instanceof PsiField ? ((PsiField)resolved).getType() : resolved instanceof PsiMethod && GroovyPropertyUtils.isSimplePropertySetter((PsiMethod)resolved) ? ((PsiMethod)resolved).getParameterList().getParameters()[0].getType() : null; PsiType substituted = resolveResult.getSubstitutor().substitute(type); if (substituted != null) { myResult = createSimpleSubTypeResult(substituted); } } } }