docs: public void destroyIndexes() {
          InternalIndex[] indexesSnapshot = getIndexes();
  
          indexes = EMPTY_INDEXES;
          compositeIndexes = EMPTY_INDEXES;
          indexesByName.clear();
          attributeIndexRegistry.clear();
          converterCache.clear();
  
          for (InternalIndex index : indexesSnapshot) {
              index.destroy();
          }
      }