@Override
  protected void lookAhead(@NotNull Lexer baseLexer) {
    final IElementType tokenType = baseLexer.getTokenType();
    if (!RegExpTT.CHARACTERS.contains(tokenType) && tokenType != RegExpTT.RBRACE) {
      advanceLexer(baseLexer);
      if (baseLexer.getTokenType() == RegExpTT.MINUS) {
        advanceAs(baseLexer, RegExpTT.CHARACTER);
      }
    }
    else {
      super.lookAhead(baseLexer);
    }
  }
@Override
  protected void lookAhead(@NotNull Lexer baseLexer)