void (Set<String> candidates, String... exe_names) { for (String name : exe_names) { findInstallations(candidates, name, "C:\\", "C:\\Program Files\\"); findInPath(candidates, name); } findInRegistry(candidates); candidates.addAll(myAppxCache.getValue()); }