addbb713a5
In this way, we can be sure that all nested declarations will be fully resolved before the outer one. As an example, we had a workaround for file diagnostics as its `FileStructure` element resolves the file only to `IMPORTS` phase yet. Also, this commit probably should improve the performance of highlighting as we will trigger the resolution from bottom to top while other highlighting passes will iterate from top to bottom. ^KT-65562