Having discovered some of these techniques through trial and error, it is helpful to see some research backing up and expanding on keeping the creativity flowing. Positive constructive daydreaming (PCD), exercise, taking a shower, napping, and more are helpful for getting access to more inspiration than just your conscious thinking can give you.
Others have studied this, including John Cleese, as detailed in his lecture on Creativity: https://www.youtube.com/watch?v=9EMj_CFPHYc