private void foldVarArgs(PsiCall call, PsiParameter[] parameters) {
    if (!MethodCallUtils.isVarArgCall(call)) return;
    PsiExpressionList args = call.getArgumentList();
    if (args == null) return;
    PsiParameter lastParameter = ArrayUtil.getLastElement(parameters);
    if (lastParameter != null && lastParameter.isVarArgs()) {
      int arraySize = args.getExpressionCount() - parameters.length + 1;
      if (arraySize >= 0) {
        addInstruction(new FoldArrayInstruction(null, DfTypes.typedObject(lastParameter.getType(), Nullability.NOT_NULL), arraySize));
      }
    }
  }
private void foldVarArgs(PsiCall call, PsiParameter[] parameters)