String[] (WSLDistribution distro) { List<String> list = new ArrayList<>(); for (String defaultPath : JavaHomeFinder.DEFAULT_JAVA_LINUX_PATHS) { list.add(distro.getWindowsPath(defaultPath)); } String home = distro.getUserHome(); if (home != null) { list.add(distro.getWindowsPath(home + "/.jdks")); } return ArrayUtil.toStringArray(list); }