code: public static RoundedMoney of(Number number, CurrencyUnit currency, MonetaryContext monetaryContext) {
          return new RoundedMoney(number, currency,
                  DEFAULT_MONETARY_CONTEXT.toBuilder().importContext(monetaryContext).build(), null);
      }
docs: Static factory method for creating a new instance of {@link RoundedMoney} .
  
  @param currency The target currency, not null.
  @param number   The numeric part, not null.
  @return A new instance of {@link RoundedMoney}.