public void setDependencyDownloadPolicy(@NotNull Project project, @NotNull GradleDependencyDownloadPolicy policy) {
    ProjectIdentifier projectIdentifier = GradleProjectUtil.getProjectIdentifier(project);
    GradleDependencyDownloadPolicy oldPolicy = policies.put(projectIdentifier, policy);
    if (oldPolicy != null) {
      String projectDisplayName = project.getDisplayName();
      context.getMessageReporter().createMessage()
        .withGroup(Messages.DEPENDENCY_DOWNLOAD_POLICY_MODEL_CACHE_SET_GROUP)
        .withTitle("Gradle dependency download policy redefinition")
        .withText("Gradle dependency download policy for " + projectDisplayName + " was already collected.")
        .withInternal().withStackTrace()
        .withKind(Message.Kind.ERROR)
        .reportMessage(project);
    }
  }
public void setDependencyDownloadPolicy(@NotNull Project project, @NotNull GradleDependencyDownloadPolicy policy)