I meant the type of allergy that often results in anaphylaxis. We can be sure that if someone's throat is swelling shut it isn't simply a case of hypochondriasis or someone following the latest food fads. Anxiety can cause shortness of breath or palpitations, but they're going to present very differently in the ER compared to someone experiencing a severe allergic reaction.
Even if someone managed to have a somatic illness that actually did cause their throat to swell and close up when exposed to certain allergens (the mind is a powerful thing after all) I don't think it'd make any meaningful difference in the event that it occurred. It would still be a life threatening medical emergency. It might however mean that with help it could be possible for them to stop having the reaction, but I'm not even sure they'd work if their immune system genuinely saw the food as a threat and learned to treat it as such.
Even if someone managed to have a somatic illness that actually did cause their throat to swell and close up when exposed to certain allergens (the mind is a powerful thing after all) I don't think it'd make any meaningful difference in the event that it occurred. It would still be a life threatening medical emergency. It might however mean that with help it could be possible for them to stop having the reaction, but I'm not even sure they'd work if their immune system genuinely saw the food as a threat and learned to treat it as such.