@NotNull public static NewVirtualFileSystem replaceWithNativeFS(@NotNull final NewVirtualFileSystem fs) { if (SystemInfo.isWindows && !(fs instanceof Win32LocalFileSystem) && fs.getProtocol().equals(LocalFileSystem.PROTOCOL) && Win32LocalFileSystem.isAvailable()) { return Win32LocalFileSystem.getWin32Instance(); } return fs; }
@Nonnull public static NewVirtualFileSystem replaceWithNativeFS(@Nonnull final NewVirtualFileSystem fs) { if (SystemInfo.isWindows && !(fs instanceof Win32LocalFileSystem) && fs.getProtocol().equals(LocalFileSystem.PROTOCOL) && Win32LocalFileSystem.isAvailable()) { return Win32LocalFileSystem.getWin32Instance(); } return fs; }