code: public static IBond.Order createBondOrder(double bondOrder) {
      	for (IBond.Order order : IBond.Order.values()) {
      		if (order.numeric().doubleValue() == bondOrder) return order;
      	}
          return null;
      }
docs: Convenience method to convert a double into an IBond.Order.
  Returns NULL if the bond order is not 1.0, 2.0, 3.0 and 4.0.
  @param bondOrder The numerical bond order
  @return An instance of {@link org.openscience.cdk.interfaces.IBond.Order}
  @see #destroyBondOrder(org.openscience.cdk.interfaces.IBond.Order)