I had elevated homocysteine, treated it (MTHFR gene, therefore methylated B12 / folate, etc), and that had zero effect on my sleep quality, unfortunately.

Tried B6, every variation of magnesium (including threonate), all the typical sleep hygiene stuff.. nothing mattered.