void (IElementType root, PsiBuilder builder) { final PsiBuilder.Marker rootMarker = builder.mark(); while (true) { parsePattern(builder); if (builder.eof()) break; patternExpected(builder); if (builder.eof()) break; } rootMarker.done(root); }