code: public static boolean ifNotNull(final BigDecimal bd, final Consumer<BigDecimal> consumer) {
          if (bd != null) {
              consumer.accept(bd);
              return true;
          }
          return false;
      }
docs: If the BigDecimal is not null call the consumer (depends on JDK8+)
  @param bd the BigDecimal
  @param consumer of the value, called if not null
  @return true if consumed
  @since 1.4.0