List<Path> (@Nullable Path rootPath) { var candidates = new ArrayList<Path>(); Arrays.stream(BIN_DIRECTORIES) .map(Path::of) .map(binDirectory -> optionallyChangeRoot(rootPath, binDirectory)) .forEach(rootDir -> collectUnixPythons(rootDir, candidates)); return candidates; }