String (@NotNull TransformationContext context) { String contentLine = context.text(); int len = contentLine.length(); char c = contentLine.charAt(len - 1); return switch (c) { case ' ' -> contentLine.substring(0, len - 1) + "\\s"; case '\t' -> contentLine.substring(0, len - 1) + "\\t"; default -> contentLine; }; }