private static int getCaretArgIndex(int caret, TextRange argListRange, PsiExpression[] args) {
    int caretArg = 0;
    while (caretArg < args.length) {
      if (args[caretArg].getStartOffsetInParent() + argListRange.getStartOffset() > caret) {
        break;
      }
      caretArg++;
    }
    return caretArg;
  }
private static int getCaretArgIndex(int caret, TextRange argListRange, PsiExpression[] args)