A 19th-century poet’s trick for cultivating a creative mindset