Capturing anxious thoughts reduces their effects.
This can signal to the mind that the matter is settled, allowing it to move on. Even the visualization of writing, or otherwise manipulating the worry such as placing it in a basket under the bed, can release the anxiety or solve sleeplessness.