void (GroovyPsiElement context, GrNamedArgument[] namedArguments, Map<String, NamedArgumentDescriptor> map) { for (GrNamedArgument namedArgument : namedArguments) { String labelName = namedArgument.getLabelName(); NamedArgumentDescriptor descriptor = map.get(labelName); if (descriptor == null) continue; GrExpression namedArgumentExpression = namedArgument.getExpression(); if (namedArgumentExpression == null) continue; if (hasTupleInitializer(namedArgumentExpression)) continue; if (PsiUtil.isRawClassMemberAccess(namedArgumentExpression)) continue; PsiType expressionType = TypesUtil.boxPrimitiveType(namedArgumentExpression.getType(), context.getManager(), context.getResolveScope()); if (expressionType == null) continue; if (!descriptor.checkType(expressionType, context)) { registerError( namedArgumentExpression, ProblemHighlightType.GENERIC_ERROR, GroovyBundle.message("inspection.message.type.argument.0.can.not.be.1", labelName,expressionType.getPresentableText()) ); } } }