class AtomPlacer3D {

    public int[] findHeavyAtomsInChain(IAtomContainer molecule, IAtomContainer chain) {
        int[] heavy = {-1, -1};
        int hc = 0;
        for (int i = 0; i < chain.getAtomCount(); i++) {
            if (isHeavyAtom(chain.getAtom(i))) {
                if (heavy[0] < 0) {
                    heavy[0] = molecule.indexOf(chain.getAtom(i));
                }
                hc++;
            }
        }
        heavy[1] = hc;
        return heavy;
    }

      AtomPlacer3D();

}