String (@NotNull TransformationContext context) { String contentLine = context.text(); int j; for (j = contentLine.length() - 2; j >= 0; j--) { char c = contentLine.charAt(j); if (c != ' ' && c != '\t') break; } String result = contentLine.substring(0, j + 1); if (context.isEnd() && hasUnescapedLastQuote(result)) { result = result.substring(0, result.length() - 1) + "\\\""; } return result; }