Where is the code rendering tool UIs?

This is little off topic as it is a developers question.

But I didn’t want to create an issue on github for it

I understand that the tool configuration UI is rendered using the tools xml descriptor.

Can someone please point me to the source codw on github where the actual tool UI is created?

Thanks a lot
romeo