private static int getMissingParenthesisOffset(PsiExpressionList argList) {
    PsiElement child = argList.getFirstChild();
    while (child != null) {
      if (child instanceof PsiErrorElement errorElement && errorElement.getErrorDescription().contains("')'")) {
        return errorElement.getTextRange().getStartOffset();
      }
      child = child.getNextSibling();
    }
    return -1;
  }
private static int getMissingParenthesisOffset(PsiExpressionList argList)