@RequiresBackgroundThread(generateAssertion = false)
  public static @Nullable Module findModuleForFile(@NotNull VirtualFile file, @NotNull Project project) {
    if (project.isDefault()) {
      return null;
    }
    return ReadAction.compute(() -> ProjectFileIndex.getInstance(project).getModuleForFile(file));
  }
@RequiresBackgroundThread(generateAssertion = false)
  public static @Nullable Module findModuleForFile(@NotNull VirtualFile file, @NotNull Project project)