public boolean subscribesTo(WatchEvent.Kind<?> eventType) {
      return subscribedTypes.contains(eventType);
    }
Gets whether or not this key is subscribed to the given type of event.
jimfs/src/main/java/com/google/common/jimfs/AbstractWatchService.java