private void addArgumentParameterLink(PsiElement arg, PsiExpressionList actualArgsList, PsiMethod method) {
    PsiParameter[] params = method.getParameterList().getParameters();
    int argIndex = ArrayUtil.indexOf(actualArgsList.getExpressions(), arg);

    if (argIndex >= 0 && argIndex < params.length) {
      addLink(params[argIndex], arg);
    }
    else if (method.isVarArgs() && argIndex >= params.length) {
      addLink(params[params.length - 1], arg);
    }
  }
private void addArgumentParameterLink(PsiElement arg, PsiExpressionList actualArgsList, PsiMethod method)