code: private boolean isConnected(IBond bond1, IBond bond2) {
          for (IAtom atom : bond1.atoms())
              if (bond2.contains(atom)) return true;
          return false;
      }
docs: Look if any atoms in <code>bond1</code> also are in <code>bond2</code>
  and if so it conceder the bonds connected.
  @param bond1 The first bond
  @param bond2 The other bond
  @return True if any of  the atoms in <code>bond1</code> also are in
  <code>bond2</code>