Visualization of storing a thought can reduce stress related to that thought.

Applying the idea that writing about topics driving anxiety can help reduce it, and that visualization can be used in palce of actual experience, visualizing the writing of an idea can reduce stress in moments where this is inconvenient, such as during sleeplessness.