@ApiStatus.Internal
  public void freezeFileTypeTemporarilyWithProvidedValueIn(@NotNull VirtualFile file,
                                                           @Nullable FileType cachedFileType,
                                                           @NotNull Runnable runnable) {
    FileType fileType = file.isDirectory() ? null :
      cachedFileType == null ? file.getFileType() : cachedFileType;
    cacheFileTypesInside(() -> {
      if (fileType != null && file instanceof VirtualFileWithId vfid) {
        CACHED.fileTypes().put(vfid.getId(), fileType);
      }
      runnable.run();
    });
  }
@ApiStatus.Internal
  public void freezeFileTypeTemporarilyWithProvidedValueIn(@NotNull VirtualFile file,
                                                           @Nullable FileType cachedFileType,
                                                           @NotNull Runnable runnable)