Program: 130527
Project: 130527
Buggy source:
private static ResolveError createResolveError(PsiElement element,PsiElement resolveElement){
  CSharpCallArgumentListOwner callOwner=findCallOwner(element);
  if (callOwner != null) {
    StringBuilder builder=new StringBuilder();
    builder.append("String_Node_Str");
    if (resolveElement instanceof DotNetVariable) {
      DotNetTypeRef typeRef=((DotNetVariable)resolveElement).toTypeRef(false);
      if (!(typeRef instanceof CSharpLambdaTypeRef)) {
        return null;
      }
      DotNetTypeRef[] parameterTypes=((CSharpLambdaTypeRef)typeRef).getParameterTypes();
      for (int i=0; i < parameterTypes.length; i++) {
        if (i != 0) {
          builder.append("String_Node_Str");
        }
        DotNetTypeRef parameterType=parameterTypes[i];
        builder.append(parameterType.getPresentableText());
      }
    }
 else     if (resolveElement instanceof DotNetLikeMethodDeclaration) {
      DotNetGenericExtractor e=MethodAcceptorImpl.createExtractorFromCall(callOwner,(DotNetGenericParameterListOwner)resolveElement);
      DotNetParameter[] parameters=((DotNetLikeMethodDeclaration)resolveElement).getParameters();
      for (int i=0; i < parameters.length; i++) {
        if (i != 0) {
          builder.append("String_Node_Str");
        }
        DotNetParameter parameter=parameters[i];
        builder.append(MethodAcceptorImpl.calcParameterTypeRef(element,parameter,e).getPresentableText());
      }
    }
    builder.append("String_Node_Str");
    builder.append("String_Node_Str");
    DotNetExpression[] parameterExpressions=callOwner.getParameterExpressions();
    for (int i=0; i < parameterExpressions.length; i++) {
      if (i != 0) {
        builder.append("String_Node_Str");
      }
      DotNetExpression parameterExpression=parameterExpressions[i];
      builder.append(parameterExpression.toTypeRef(false).getPresentableText());
    }
    builder.append("String_Node_Str");
    PsiElement parameterList=callOwner.getParameterList();
    if (parameterList == null) {
      parameterList=callOwner;
    }
    return new ResolveError("String_Node_Str",builder.toString(),parameterList);
  }
  return null;
}

Fixed version (ground truth):
private static ResolveError createResolveError(PsiElement element,PsiElement resolveElement){
  CSharpCallArgumentListOwner callOwner=findCallOwner(element);
  if (callOwner != null) {
    StringBuilder builder=new StringBuilder();
    builder.append("String_Node_Str");
    if (resolveElement instanceof DotNetVariable) {
      DotNetTypeRef typeRef=((DotNetVariable)resolveElement).toTypeRef(false);
      if (!(typeRef instanceof CSharpLambdaTypeRef)) {
        return null;
      }
      DotNetTypeRef[] parameterTypes=((CSharpLambdaTypeRef)typeRef).getParameterTypes();
      for (int i=0; i < parameterTypes.length; i++) {
        if (i != 0) {
          builder.append("String_Node_Str");
        }
        appendType(builder,parameterTypes[i]);
      }
    }
 else     if (resolveElement instanceof DotNetLikeMethodDeclaration) {
      DotNetGenericExtractor e=MethodAcceptorImpl.createExtractorFromCall(callOwner,(DotNetGenericParameterListOwner)resolveElement);
      DotNetParameter[] parameters=((DotNetLikeMethodDeclaration)resolveElement).getParameters();
      for (int i=0; i < parameters.length; i++) {
        if (i != 0) {
          builder.append("String_Node_Str");
        }
        appendType(builder,MethodAcceptorImpl.calcParameterTypeRef(element,parameters[i],e));
      }
    }
    builder.append("String_Node_Str");
    builder.append("String_Node_Str");
    DotNetExpression[] parameterExpressions=callOwner.getParameterExpressions();
    for (int i=0; i < parameterExpressions.length; i++) {
      if (i != 0) {
        builder.append("String_Node_Str");
      }
      appendType(builder,parameterExpressions[i].toTypeRef(false));
    }
    builder.append("String_Node_Str");
    PsiElement parameterList=callOwner.getParameterList();
    if (parameterList == null) {
      parameterList=callOwner;
    }
    return new ResolveError("String_Node_Str",builder.toString(),parameterList);
  }
  return null;
}