Given a set of SQL scripts, does there exist software that generates a dependency tree of SQL scripts starting with the root SQL script?

I have a about 100 *.sql scripts located in a directory (let’s say script1.sql, script2.sql, …., script100.sql).

Some of these scripts create tables, some create triggers, some create functions, etc..

Without manually looking through each of the 100 scripts, it is not immediately clear to me which script depends on other scripts.

Is there a software/program out there that, when given as input a directory of SQL scripts, can output a dependency tree, starting with the root SQL script?