St. John of the Cross explained this in one of his chapters of the Ascent, and I think since DBT and I previously discussed this, he might be able to put his finger on the teaching, if he is reading?
How in the world did you know I’d be reading

Sorry, couldn’t resist
Yes, Joysong, you are very right in what you say and it was you, in particular, who helped me begin to understand all this a couple of years ago right here on this very forum.
St. John of the Cross does indeed speak of “reading the minds of others” in Book 2 of the Ascent of Mt. Carmel . . . can’t remember the chapter offhand, though. And, of course, he doesn’t use the term “reading minds.” Rather, from what I recall, St. John speaks of this “knowing” as intuition or inspiration in his overall discussion of discernment of spirits.
St. John teaches intuition like this can come from three sources: the Holy Spirit, our imagination and the devil. He is very careful to explain how one can discern the source.
Inspiration from the Holy Spirit in the form of a “generalized knowing” or “anticipation of the needs of others” does indeed happen . . . I’ve witnessed it many times right here on these forums. St. John notes, however, we should be cautious in applying this gift because many times the purely spiritual is co-mingled with the human/natural (his second source). I’ve witnessed that many times too — when someone seems to hit the “nail on the head” on reading the situation but also acknowledges a sense of “mixed motives” in the intention behind what they say. St. Therese, in particular, describes this as the self-love that is often at the root of spiritual discussions — even those with the best of intentions.
Lastly, we’ll know when the hand of the devil is in the mix when we become puffed up by pride over all our wonderful insights. THAT, I’m sure, is one we’ve all witnessed.
St. John also teaches that intuition like this is of two types: of the Creator and of creatures (what we’ve been discussing). Intuition of God comes in the form of “touches” – very light infusions of His presence into our souls to recall our attention back to Him when our minds stray. Again, this is a “generalized” knowing – no “particular” knowledge is given. Touches are a very great gift and can always be trusted. Intuition of creatures, on the otherhand, should be judiciously applied as discussed due to the difficulty with discernment.
Don’t know if that helped or confused the matter
Dave.