Avoid Google in this case. I understand it can be frustrating to look for specific code snippets but it is part of the experience to have to browse through documentation and old forum posts. Of course, you cannot 100% know if code shared in a forum or even documentation was not AI generated but it’s a best effort approach I guess.