@Override
  public void onSuccess(@NotNull ExternalSystemTaskId id) {
    if (GradleConstants.SYSTEM_ID.getId().equals(id.getProjectSystemId().getId())
        && id.getType() == ExternalSystemTaskType.RESOLVE_PROJECT) {
      Project project = id.findProject();
      if (project != null) {
        new ImportMavenRepositoriesTask(project).schedule();
      }
    }
  }
@Override
  public void onSuccess(@NotNull ExternalSystemTaskId id)