Prepositional phrase
Used other than figuratively or idiomatically: see in, one's, head.
Within one's intellect, memory, or mind.
Within one's imagination; without basis in reality.
Mentally.
Anxious due to overthinking an issue.