code: public void ifPresent(@NotNull Consumer<? super T> consumer) {
          if (value != null)
              consumer.accept(value);
      }
docs: Invokes consumer function with value if present.
  
  @param consumer  the consumer function