I tHINK GOT IT!!!!!!!!!!!!!
I add SpkGUITools in uses
Lazarus now draws a red ball on the left editor gutter for compiler errors and warnings. Its popup menu has QuickFix items. See QuickFixMenu.png.
"Search identifier" and "Show Cody dictionary ..." both let you add the missing unit to uses section. See pics.
It can be improved in future. Cody dictionary does not show matches initially when it has not parsed the unit yet.
Also, if Cody dictionary finds only few matches, they could be added to the QuickFix menu directly.
[Edit] Actually the package Cody must be installed before you get the "Show Cody dictionary ..." menu item.
Cody has many useful features but some GUIs are not as user-friendly as they should be. Anyway I recommend it.