そういうのやりたければRAD Studio 12.2以降に実装されたSmart CodeInsightというAI機能があるはずだが

12.2以前、たとえばCommunity Editionの12.1使ってるならこの辺入れればいいんじゃね

Delphi AI Developer (Copilot)
https://github.com/Code4Delphi/Delphi-AI-Developer

CyAIAssistant (AI Coding Assistant for the Delphi IDE)
https://github.com/Cypheros-de/AI-Assistant-for-Delphi