public static @Nullable VirtualFile findFile(@NotNull Path file, boolean refreshIfNeeded) {
    return findFile(file.toAbsolutePath().toString().replace(File.separatorChar, '/'), refreshIfNeeded);
  }
public static @Nullable VirtualFile findFile(@NotNull Path file, boolean refreshIfNeeded)