void clear() {
    synchronized (myLock) {
      myRecursiveWatchRoots.clear();
      myOptimizedRecursiveWatchRoots.clear();
      myFlatWatchRoots.clear();
      myPathMappings.clear();

      mySymlinksByPath.clear();
      mySymlinksById.values().forEach(SymlinkData::clear);
      mySymlinksById.clear();
    }
  }
void clear()