code: public static Collection<MonetaryAmountFormat> getAmountFormats(AmountFormatQuery formatQuery) {
          return Optional.ofNullable(getMonetaryFormatsSpi()).orElseThrow(() -> new MonetaryException(
                  "No MonetaryFormatsSingletonSpi " + "loaded, query functionality is not available."))
                  .getAmountFormats(formatQuery);
      }
docs: Access all {@link MonetaryAmountFormat} instances that match the given a {@link AmountFormatQuery}.
  
  @param formatQuery the required {@link AmountFormatQuery}, not {@code null}. If the query does not define
  any explicit provider chain, the providers as defined by #getDefaultCurrencyProviderChain()
  are used.
  @return the matching {@link MonetaryAmountFormat}
  @throws MonetaryException if no registered {@link MonetaryAmountFormatProviderSpi} can provide a
  corresponding {@link MonetaryAmountFormat} instance.