Path (@NotNull ProgressIndicator i) { var candidate = vm.getUNCRootPath().resolve("home"); var homes = NioFiles.list(candidate); if (homes.size() == 1) { candidate = homes.get(0); } else if (homes.size() > 1) { var env = vm.getUserHome(); if (env != null && !env.isBlank()) { candidate = vm.getUNCRootPath().resolve(env); } } return candidate; }