private static @NotNull String processNonPrintableChars(@NotNull String string) {
    StringBuilder result = new StringBuilder();
    for (char c : string.toCharArray()) {
      if (isNonPrintable(c)) {
        result.append("\\x");
        result.append(charToHEX(c));
      } else {
        result.append(c);
      }
    }
    return result.toString();
  }
private static @NotNull String processNonPrintableChars(@NotNull String string)