@NotNull
  private static OSType computeOsType(@NotNull EnvironmentAwareHost host) throws ExecutionException {
    if (host instanceof LocalAttachHost) {
      return localComputeOsType();
    }

    try {
      GeneralCommandLine getOsCommandLine = new GeneralCommandLine("uname", "-s");
      var unameOutput = host.getProcessOutput(getOsCommandLine);
      LOG.debug("`uname -s` output: ", unameOutput);
      final String osString = unameOutput.getStdout().trim();

      return switch (osString) {
        case "Linux" -> OSType.LINUX;
        case "Darwin" -> OSType.MACOSX;
        default -> OSType.UNKNOWN;
      };
    }
    catch (ExecutionException ex) {
      throw new ExecutionException(XDebuggerBundle.message("dialog.message.error.while.calculating.remote.operating.system"), ex);
    }
  }
@NotNull
  private static OSType computeOsType(@NotNull EnvironmentAwareHost host)