private static void incompleteDependenciesState(@NotNull Project project, @NotNull Object requestor, @NotNull Runnable runnable) {
    if (!Registry.is("external.system.incomplete.dependencies.state.during.sync")) {
      runnable.run();
    }
    var incompleteDependenciesService = project.getService(IncompleteDependenciesService.class);
    var incompleteDependenciesAccessToken = WriteAction.computeAndWait(() -> {
      return incompleteDependenciesService.enterIncompleteState(requestor);
    });
    try {
      runnable.run();
    }
    finally {
      WriteAction.runAndWait(() -> {
        incompleteDependenciesAccessToken.finish();
      });
    }
  }
private static void incompleteDependenciesState(@NotNull Project project, @NotNull Object requestor, @NotNull Runnable runnable)