boolean (VirtualFile file) { if (file.isInLocalFileSystem()) { try { var path = file.getFileSystem().getNioPath(file); if (path != null && Path.of(SystemProperties.getUserHome()).startsWith(path)) { return false; } } catch (InvalidPathException e) { Logger.getInstance(OpenProjectFileChooserDescriptor.class).error(e); } } return true; }