docs: private void outputIndexTermEndElement(final IndexTerm term, final XMLStreamWriter serializer, final boolean indexsee) throws XMLStreamException {
          if (indexsee){
              if (term.getTermPrefix() != null) {
                  serializer.writeEndElement(); // see
                  inIndexsee = false;
              } else if (inIndexsee) {
                  // NOOP
              } else {
                  serializer.writeEndElement(); // entry
              }
          } else {
              serializer.writeEndElement(); // entry
          }
      }