docs: Invoice earliest(final SortedSet<Invoice> unpaidInvoices) {
          try {
              return unpaidInvoices.first();
          } catch (NoSuchElementException e) {
              return null;
          }
      }