boolean (String pathStr) { Path path = Paths.get(pathStr); Path pathRoot = path.getRoot(); if (pathRoot == null) return false; if (SystemInfo.isWindows && pathRoot.toString().startsWith("\\\\")) return true; return ContainerUtil.find(pathRoot.getFileSystem().getRootDirectories(), pathRoot) != null && Files.exists(path); }