The answer lies in the response of true genius to that question. Below are excerpts of some truly creative genius' to the query of how their creativity was inspired. These are scientists and artists, for creativity is not limited to the arts.
Creative thought abounds in all occupations and can be practiced and cultivated in anyone.
Study their techniques, experience and revelations and adapt them to your own style. I am not satisfied myself with those answers and I am willing to answer more questions if you believe this could of any advantage for the very interesting and difficult work you have undertaken. There is, of course, a certain connection between those elements and relevant logical concepts. It is also clear that the desire to arrive finally at logically connected concepts is the emotional basis of this rather vague play with the above mentioned elements. But taken from a psychological viewpoint, this combinatory play seems to be the essential feature in productive thought - before there is any connection with logical construction in words or other kinds of sign, which can be communicated to others.