code: private synchronized WatchEvent<Path> resolveEventWithCorrectPath(final WatchKey key, final WatchEvent<Path> event) {
          Path correctPath = Paths.get(pathsByWatchKey.get(key));
          return new ResolvedPathWatchEvent(event, correctPath);
      }
docs: Resolves a watch event with its absolute path.
  @param key the watch key (used to look up the parent path)
  @param event the event to resolve
  @return a copy of the event, with a resolved path