code: public boolean matches(Action<?, ?> action, Object object) {
          return this.action == action && object != null && entityType.isAssignableFrom(object.getClass());
      }
docs: Checks whether given object is of interest to this interest instance.
  
  @param action the action to be performed on the object
  @param object the object to check
  @return true if the object is of interest to this, false otherwise