code: public static <T> void ifNotNull(T object, Consumer<T> consumer) {
          Optional.ofNullable(object).ifPresent(consumer);
      }
docs: If not null.
  
  @param <T>      the type parameter
  @param object   the object
  @param consumer the consumer