private static RequiresGraph getRequiresGraph(@NotNull PsiJavaModule module) {
    final Project project = module.getProject();
    if (DumbService.getInstance(project).isAlternativeResolveEnabled()) {
      return DumbModeAccessType.RELIABLE_DATA_ONLY.ignoreDumbMode(() -> buildRequiresGraph(project));
    }
    return CachedValuesManager.getManager(project).getCachedValue(project, () ->
      Result.create(buildRequiresGraph(project),
                    PsiJavaModuleModificationTracker.getInstance(project),
                    ProjectRootModificationTracker.getInstance(project)));
  }
private static RequiresGraph getRequiresGraph(@NotNull PsiJavaModule module)