docs: public void addTerm(final IndexTerm term) {
          int i = 0;
          final int termNum = termList.size();
  
          for (; i < termNum; i++) {
              final IndexTerm indexTerm = termList.get(i);
              if (indexTerm.equals(term)) {
                  return;
              }
  
              // Add targets when same term name and same term key
              if (indexTerm.getTermFullName().equals(term.getTermFullName())
                      && indexTerm.getTermKey().equals(term.getTermKey())) {
                  indexTerm.addTargets(term.getTargetList());
                  indexTerm.addSubTerms(term.getSubTerms());
                  break;
              }
          }
  
          if (i == termNum) {
              termList.add(term);
          }
      }