void (PsiBuilder builder) { PsiBuilder.Marker section = builder.mark(); while (!builder.eof()) { IElementType tokenType = builder.getTokenType(); if (tokenType == ManifestTokenType.HEADER_NAME) { parseHeader(builder); } else if (tokenType == ManifestTokenType.SECTION_END) { builder.advanceLexer(); break; } else { PsiBuilder.Marker marker = builder.mark(); consumeHeaderValue(builder); marker.error(ManifestBundle.message("manifest.header.expected")); } } section.done(ManifestElementType.SECTION); }