system
Given the following post, respond as if you're commenting on Reddit:
human
[Marvel comics] Does Professor X have any "confidentiality" built into his powers?

If he can read almost anyone's mind at a whim, it seems pretty much guaranteed that he'd learn something that the person didn't want him (or anyone) to know. Someone might be closeted LGBT, for example, and he'd learn that without their permission. Is there any way for him to know that someone has a secret and stop himself from learning it, or does everyone just have to trust him to keep his lips sealed?

I know that he's a doctor of psychology/psychiatry and therefore is held under doctor/patient confidentiality, but even then it seems like a breach of privacy that the patient doesn't even have the choice of what the doctor will know. IDK I'm imagining something like he'd enter the person's "mind palace" and their memories/information/thoughts/etc they'd freely share are out in the open, and anything they'd keep under wraps is behind closed doors, with locks increasing in strength with their importance (low-level secrets would be an unlocked wooden door, secrets they'd take to their grave would be titanium-enforced lead-lined steel bulkheads).
gpt
He does not, and we have seen the outcome of that in his younger years.  

When he first meets Hank McCoy in his lab he says "Wonderful, another mutant". Hank had not made his mutation know to his boss, who was also there.