How to Get Great Ideas

Over a coffee I was wondering, where do the greatest ideas come from? And it's not a straightforward question to answer.

Some would say necessity provokes new ideas. This is true, but I think that negates humankind's ability and want for the creation of new value.