@Override
  public void reportErrorMessage(
    @NotNull String modelName,
    @NotNull Project project,
    @NotNull ModelBuilderContext context,
    @NotNull Exception exception
  ) {
    GradleDependencyDownloadPolicyCache.getInstance(context)
      .markDependencyDownloadPolicyAsError(project);

    context.getMessageReporter().createMessage()
      .withGroup(Messages.DEPENDENCY_DOWNLOAD_POLICY_MODEL_GROUP)
      .withKind(Message.Kind.ERROR)
      .withTitle("Dependency download policy building failure")
      .withException(exception)
      .reportMessage(project);
  }
@Override
  public void reportErrorMessage(
    @NotNull String modelName,
    @NotNull Project project,
    @NotNull ModelBuilderContext context,
    @NotNull Exception exception
  )