private static boolean isStreamingModelFetchingEnabledImpl(@NotNull ProjectResolverContext context) {
    if (!Registry.is("gradle.phased.sync.enabled")) {
      LOG.debug("The streaming Gradle model fetching isn't applicable: disabled by registry");
      return false;
    }
    var project = context.getExternalSystemTaskId().findProject();
    if (project == null) {
      String projectId = context.getExternalSystemTaskId().getIdeProjectId();
      LOG.debug("The streaming Gradle model fetching isn't applicable: project is closed: " + projectId);
      return false;
    }
    var gradleVersion = context.getProjectGradleVersion();
    if (gradleVersion == null) {
      LOG.debug("The streaming Gradle model fetching isn't applicable: Gradle version cannot be determined");
      return false;
    }
    if (GradleVersionUtil.isGradleOlderThan(gradleVersion, "8.6")) {
      LOG.debug("The streaming Gradle model fetching isn't applicable: unsupported Gradle version: " + gradleVersion);
      return false;
    }
    if (GradleVersionUtil.isGradleOlderThan(gradleVersion, "8.9")) {
      var projectPath = Path.of(context.getProjectPath());
      var properties = GradlePropertiesFile.getProperties(project, projectPath);
      var isolatedProjects = properties.getIsolatedProjects();
      if (isolatedProjects != null && isolatedProjects.getValue()) {
        LOG.debug("The streaming Gradle model fetching isn't applicable: unsupported isolated-projects mode: " + gradleVersion);
        return false;
      }
    }
    return true;
  }
private static boolean isStreamingModelFetchingEnabledImpl(@NotNull ProjectResolverContext context)