A generalized method for the superposition of resonance structures