void (@NotNull GeneralCommandLine commandLine) { StringBuilder builder = new StringBuilder(); for (String envName : commandLine.getEnvironment().keySet()) { if (StringUtil.isNotEmpty(envName)) { if (builder.length() > 0) { builder.append(":"); } builder.append(envName).append("/u"); } } if (builder.length() > 0) { String prevValue = commandLine.getEnvironment().get(WslConstants.WSLENV); if (prevValue == null) { prevValue = commandLine.getParentEnvironment().get(WslConstants.WSLENV); } String value = prevValue != null ? StringUtil.trimEnd(prevValue, ':') + ':' + builder : builder.toString(); commandLine.getEnvironment().put(WslConstants.WSLENV, value); } }