On the generalization of the level repulsion theorem to resonances