code: public static void clear() {
          lock.writeLock().lock();
          try {
              allStrings = new EfficientStringBiMap(HASH_MODULO);
              indexCounter.set(0);
          } finally {
              lock.writeLock().unlock();
          }
      }
docs: Clears the registry of existing Strings and resets the index to 0. Use this to free up memory.