Just as soon as someone thinks of it!  Exactly!  And for that to happen all that is needed is a great number of minds (people).   So as problems come at humanity, the solutions will as well!   More people, more problems, more solutions!