code: public boolean isOK(IAtomContainer m) throws CDKException {
          // OK, we take advantage here from the fact that this class does not take
          // into account rings larger than 7 atoms. See fixAromaticBondOrders().
          IRingSet rs = allRingsFinder.findAllRings(m, 7);
          storeRingSystem(m, rs);
          boolean StructureOK = this.isStructureOK(m);
          IRingSet irs = this.removeExtraRings(m);
  
          if (irs == null) throw new CDKException("error in AllRingsFinder.findAllRings");
  
          int count = this.getBadCount(m, irs);
  
          return StructureOK && count == 0;
      }
docs: Determines if, according to the algorithms implemented in this class, the given
  AtomContainer has properly distributed double bonds.
  
  @param  m {@link IAtomContainer} to check the bond orders for.
  @return true, if bond orders are properly distributed
  @throws CDKException thrown when something went wrong