public @NonNls @Nullable String getEnvironmentVariable(String name) {
    if (WslIjentAvailabilityService.getInstance().runWslCommandsViaIjent()) {
      Map<String, String> map = WslIjentUtil.fetchLoginShellEnv(WslIjentManager.getInstance(), this, null, false);
      return map.get(name);
    }
    WSLCommandLineOptions options = new WSLCommandLineOptions()
      .setExecuteCommandInInteractiveShell(true)
      .setExecuteCommandInLoginShell(true);
    return WslExecution.executeInShellAndGetCommandOnlyStdout(this, new GeneralCommandLine("printenv", name),
                                                              options.setLaunchWithWslExe(true), DEFAULT_TIMEOUT,
                                                              true);
  }
public @NonNls @Nullable String getEnvironmentVariable(String name)