docs: public ArrayList<MtasTreeHit<String>> getTerms(ArrayList<MtasTreeHit<?>> refs)
        throws IOException {
      try {
        ArrayList<MtasTreeHit<String>> terms = new ArrayList<MtasTreeHit<String>>();
        IndexInput inTerm = indexInputList.get("term");
        for (MtasTreeHit<?> hit : refs) {
          inTerm.seek(hit.ref);
          String term = inTerm.readString();
          MtasTreeHit<String> newHit = new MtasTreeHit<String>(hit.startPosition,
              hit.endPosition, hit.ref, hit.additionalId, hit.additionalRef,
              term);
          terms.add(newHit);
        }
        return terms;
      } catch (Exception e) {
        throw new IOException(e);
      }
    }