@Override
  public synchronized void cancelled(Key key) {
    snapshots.remove(key);

    if (snapshots.isEmpty()) {
      stopPolling();
    }
  }
Map of keys to the most recent directory snapshot for each key.
jimfs/src/main/java/com/google/common/jimfs/PollingWatchService.java