void deleteAtomReferences() { if (atom1 != null) atom1.deleteBond(this); if (atom2 != null) atom2.deleteBond(this); atom1 = atom2 = null; }