Mental barriers in Legends
In a comic/novel I remember TPM Kenobi was stated as having erected a mental defense to a mental attack. In Path of Destruction Kas'im states that erecting a force barrier is one of the first lessons taught in a force sensitives training. Does this same training extend to attacks from telepathic attacks/sorcery? What are some examples of Jedi/Sith erecting barriers where no training was stated to have occurred?