boolean (String file) { if (!SystemInfo.isMac) return false; if (FileSystemUtil.isSymLink(file)) { return true; } String home = System.getProperty("user.home"); Path path = Path.of(file); return path.startsWith(Path.of(home, "Documents")) || path.startsWith(Path.of(home, "Pictures")) || path.startsWith(Path.of(home, "Downloads")) || path.startsWith(Path.of(home, "Desktop")) || path.startsWith(Path.of(home, "Library")); }