PsiType paramType = parameters[Math.min(j, parameters.length -1)].getType();
if (paramType instanceof PsiEllipsisType) {
paramType = ((PsiEllipsisType)paramType).getComponentType();
}
paramType = substitutor != null ? substitutor.substitute(paramType) : paramType;
<BUG>if (paramType.isAssignableFrom(exprType)) continue;
if (expectedType == null && findWrapper(exprType,
getClassType(paramType, expression),
paramType instanceof PsiPrimitiveType) != null) {</BUG>
expectedType = paramType;

PsiType paramType = parameters[Math.min(j, parameters.length -1)].getType();
if (paramType instanceof PsiEllipsisType) {
paramType = ((PsiEllipsisType)paramType).getComponentType();
}
paramType = substitutor != null ? substitutor.substitute(paramType) : paramType;
if (paramType.isAssignableFrom(exprType)) continue;
final PsiClassType classType = getClassType(paramType, expression);
if (expectedType == null && classType != null && findWrapper(exprType, classType, paramType instanceof PsiPrimitiveType) != null) {
expectedType = paramType;
