This is what I do when I find myself awake in the middle of the night. Especially when I'm standing up looking out the window or standing in another place in the house.(I sleep wake and talk) I always ask myself, "Why I'm I awake?" That usually takes care of it and I get back to sleep. I also do this when planning things that seem to not be working out. Why is this so difficult? Maybe it is something I shouldn't be doing.
Some things are not as easy to identify and take more then a few minutes of my time. I really enjoy this commandment and if I take the time to figure out the problem I am much happier with my life.