Gradle Tooling api and dependencies resolve

Hi,

When I reimport Gradle project in the IntelliJ, the Gradle tooling API is executed.

I guess the Gradle tooling API only parses Gradle build scripts, but does not run the configuration phase or resolve any dependencies. Is that correct?

It looks like when we add additional dependencies and do not run Gradle build, but only refresh dependencies in IntelliJ, sometimes the IntelliJ gets confused and is not able to resolve newly added imports.

Thanks