title: What does "Refresh all Gradle projects" do?
body: <p>I'm trying to create a gradle plugin that generates some sources when the "Refresh all Gradle projects" button on the Gradle panel. I assume IntelliJ is executing some Gradle target, but I can't find any documentation to figure out which target or targets are executed.</p>
  
  <p>This is for an Android project, and I've heard it suggested to use <code>project.preBuild.dependsOn task</code>, but I have not been able to get that to work every time I refresh (it only works the first time).</p>
  
  <p><a href="https://i.stack.imgur.com/F709a.png" rel="noreferrer"><img src="https://i.stack.imgur.com/F709a.png" alt="Refresh all Gradle Projects"></a></p>