protected static int skipStringLiteralEscapes(int caretOffset, StringLiteralLexer lexer) {
    while (lexer.getTokenType() != null) {
      if (lexer.getTokenStart() < caretOffset && caretOffset < lexer.getTokenEnd()) {
        if (StringEscapesTokenTypes.STRING_LITERAL_ESCAPES.contains(lexer.getTokenType())) {
          caretOffset = lexer.getTokenEnd();
        }
        break;
      }
      lexer.advance();
    }
    return caretOffset;
  }
protected static int skipStringLiteralEscapes(int caretOffset, StringLiteralLexer lexer)