code: public void addListener(final PathAlterationListener listener) {
      if (listener != null) {
        this.listeners.put(listener, new ExceptionCatchingPathAlterationListenerDecorator(listener));
      }
    }
docs: Add a file system listener.
  
  @param listener The file system listener