code: public XWPFRun insertNewHyperLinkRun(int pos, String link) {
          if (pos >= 0 && pos <= paragraph.getRuns().size()) {
              PackageRelationship relationship = paragraph.getDocument().getPackagePart()
                      .addExternalRelationship(link, XWPFRelation.HYPERLINK.getRelation());
              CTHyperlink hyperlink = paragraph.getCTP().insertNewHyperlink(pos);
              hyperlink.setId(relationship.getId());
              CTR ctr = hyperlink.addNewR();
              XWPFHyperlinkRun newRun = new XWPFHyperlinkRun(hyperlink, ctr, (IRunBody) paragraph);
  
              List<IRunElement> iruns = getIRuns();
              List<XWPFRun> runs = getRuns();
              // To update the iruns, find where we're going
              // in the normal runs, and go in there
              int iPos = iruns.size();
              if (pos < runs.size()) {
                  XWPFRun oldAtPos = runs.get(pos);
                  int oldAt = iruns.indexOf(oldAtPos);
                  if (oldAt != -1) {
                      iPos = oldAt;
                  }
              }
              iruns.add(iPos, newRun);
  
              // Runs itself is easy to update
              runs.add(pos, newRun);
  
              return newRun;
          }
  
          return null;
      }
docs: 插入超链接
  
  @param pos
  位置
  @param link
  链接
  @return XWPFRun