A construct-tree visitor that inspects or modifies constructs during application preparation within its assigned scope,…