code: public void ifPresent(Consumer<? super T> consumer) {
          T value = get(false);
  
          if (value != null) {
              consumer.accept(value);
          }
      }
docs: If a default or explicit value is present, invoke the supplied consumer with it.
  
  @param consumer The consumer.