It won't show on a background investigation.

Even if you get a high-level clearance, they can only ask 3 questions about your mental competency.