boolean (String text, String rawText, StringKind kind) { if (!text.equals(kind.unescape(rawText))) { return false; } if (kind == StringKind.SINGLE_QUOTED) { return StringUtilKt.isValidSingleQuotedStringContent(rawText); } else if (kind == StringKind.DOUBLE_QUOTED) { return StringUtilKt.isValidDoubleQuotedStringContent(rawText); } else { return true; } }