Pseudo‐Jahn‐Teller Effect and Second Order Phase Transitions in Crystals