private static @NotNull String replaceWhitespacesWithEscapes(@NotNull String contentLine) {
    int len = contentLine.length();
    return switch (contentLine.charAt(len - 1)) {
      case ' ' -> contentLine.substring(0, len - 1) + "\\s";
      case '\t' -> contentLine.substring(0, len - 1) + "\\t";
      default -> contentLine;
    };
  }
private static @NotNull String replaceWhitespacesWithEscapes(@NotNull String contentLine)