code: protected <T> Optional<T> getTarget(Event event, Class<T> type) {
          return getValue(event, event::getTarget, type);
      }
docs: Gets the target.
  
  @param event the event
  @param type the cls
  
  @param <T> the generic type
  
  @return the target