code: public static List<IAtom> getHeavyAtoms(IAtomContainer container) {
          List<IAtom> newAc = new ArrayList<IAtom>();
          for (int f = 0; f < container.getAtomCount(); f++) {
              if (!container.getAtom(f).getSymbol().equals("H")) {
                  newAc.add(container.getAtom(f));
              }
          }
          return newAc;
      }
docs: Returns a set of nodes excluding all the hydrogens.
  
  @return         The heavyAtoms value
  @cdk.keyword    hydrogens, removal