private void resetBuilderCache(@NotNull ParsingScope prevScope) {
    if (!getScope().equals(prevScope)) {
      // builder could cache some data based on the previous scope (e.g. token type)
      // and we have to reset its cache if scope has changed
      getBuilder().mark().rollbackTo();
    }
  }
private void resetBuilderCache(@NotNull ParsingScope prevScope)