GitExecutable (@NotNull String pathToGit) { WslPath wslPath = WslPath.parseWindowsUncPath(pathToGit); if (wslPath != null) { return new GitExecutable.Wsl(wslPath.getLinuxPath(), wslPath.getDistribution()); } return new GitExecutable.Local(pathToGit); }