List<Detector> (@Nullable WSLDistribution projectWslDistribution) { List<Detector> detectors = new ArrayList<>(); if (projectWslDistribution != null && GitExecutableManager.supportWslExecutable()) { detectors.add(new WslDetector(projectWslDistribution)); } detectors.add(new EnvDetector()); detectors.add(new SystemPathDetector()); if (projectWslDistribution == null && GitExecutableManager.supportWslExecutable() && Registry.is("git.detect.wsl.executables")) { detectors.add(new GlobalWslDetector()); } return detectors; }