With patents there is this funny situation where you need to know exactly how to do something in order to find the document.
I forget who came up with the idea but we could create a database with functions for every use case with the idea to never have to write something already written but finding the one you are looking for (by conventional search) would take more time than writing from scratch.
AI just provides new angles to attack from. It could save time or take more time, bit of a gamble. Examine your cards before placing the bet.