TextResource (@NotNull File scriptFile) { WSLDistribution wslDistribution = WslPath.getDistributionByWindowsUncPath(scriptFile.getPath()); if (wslDistribution == null) return null; String wslPath = wslDistribution.getWslPath(scriptFile.toPath()); if (wslPath == null) return null; return new UriTextResource("script", pathToUri(wslPath), new IdentityFileResolver()); }