code: public static IBond.Order getMaximumBondOrder(Iterator<IBond> bonds) {
          IBond.Order maxOrder = IBond.Order.SINGLE;
          while (bonds.hasNext()) {
              IBond bond = bonds.next();
              if (isHigherOrder(bond.getOrder(), maxOrder)) maxOrder = bond.getOrder();
          }
          return maxOrder;
      }
docs: Returns the maximum bond order for a List of bonds, given an iterator to the list.
  @param bonds An iterator for the list of bonds
  @return The maximum bond order found
  @see #getMaximumBondOrder(java.util.List)