What to do: See a doctor, who will likely first check you for underlying conditions related to PLMD. Diabetes, thyroid disorders, anemia, and a number of other conditions can cause PLMD. If you do have another condition, the doctor will treat it and see if the PLMD goes away. The next step is to control the involuntary movements with medication. Drugs that suppress muscle contractions work well for preventing PLMD. The doctor may also prescribe medication to help you sleep more deeply, with the idea of preventing the involuntary movements from keeping you in light sleep.
Keep a pen and paper next to your bed. If you're often kept awake by racing thoughts and worries and you tend to make to-do lists in your head, keep a pen or pencil and a small pad of paper handy and write them down. As you put each item down on paper, imagine yourself setting aside that concern. (Again, use a book light; don't turn on the overhead or a bright bedside light to write.)