Path (WSLDistribution distribution) { String pathsSelector = PathManager.getPathsSelector(); String wslUserHome = distribution.getUserHome(); if (wslUserHome == null) return null; String windowsUserHomePath = distribution.getWindowsPath(wslUserHome); if (pathsSelector == null) pathsSelector = "." + ApplicationNamesInfo.getInstance().getScriptName(); String workingDirectory = PathManager.getDefaultUnixSystemPath(windowsUserHomePath, pathsSelector) + "/" + BuildManager.SYSTEM_ROOT; return Paths.get(workingDirectory); }