for (int i = bsBonds.nextSetBit(0); i >= 0; i = bsBonds.nextSetBit(i + 1)) {
Atom atom1 = bonds[i].atom1;
if (models[atom1.modelIndex].isModelKit)
continue;
bsA.clear();
bsB.clear();
bsA.set(atom1.index);
bsB.set(bonds[i].getAtomIndex2());
addStateScript("connect ", null, bsA, bsB, "delete", false, true);
}
}