public static @NotNull LocalRefUseInfo forFile(@NotNull PsiFile file) {
    return CachedValuesManager.getCachedValue(file, () -> {
      Builder builder = new Builder(file);
      for (PsiFile psiFile : file.getViewProvider().getAllFiles()) {
        psiFile.accept(builder);
      }
      LocalRefUseInfo result = builder.build();
      return CachedValueProvider.Result.create(result, PsiModificationTracker.MODIFICATION_COUNT);
    });
  }
public static @NotNull LocalRefUseInfo forFile(@NotNull PsiFile file)