The advice we got from our professors when writing theses was: crack open a bottle of fine whisk{e}y [0], get a couple glasses in, write (while keeping your drink topped of course) until writing is a serious challenge, edit the next morning in the harsh and sober light of day [1].
Works a treat, even if you liver may not fully appreciate it.
[0] Whiskey may be substituted for your preferred liquor, but it is a solid traditional writers' choice
[1] TL;DR 'Write drunk, edit sober'