code: public static IBond deref(IBond bond) {
          while (bond instanceof BondRef)
              bond = ((BondRef) bond).deref();
          return bond;
      }
docs: Utility method to dereference an bond pointer. If the bond is not
  an {@link BondRef} it simply returns the input.
  
  @param bond the bond
  @return non-pointer bond