public static @Nullable VirtualFile refreshAndFindFileByIoFile(final @NotNull File file) {
    var app = ApplicationManager.getApplication();
    if (!app.isDispatchThread()) {
      assert !((ApplicationEx)app).holdsReadLock();
    }
    return LocalFileSystem.getInstance().refreshAndFindFileByNioFile(file.toPath());
  }
public static @Nullable VirtualFile refreshAndFindFileByIoFile(final @NotNull File file)