void (PsiBuilder builder) { final PsiBuilder.Marker marker = builder.mark(); builder.advanceLexer(); if (!parseParenExpr(builder)) { builder.error(XPathBundle.message("parsing.error.expression.expected")); } checkMatches(builder, XPathTokenTypes.RPAREN, XPathBundle.message("parsing.error.closing.parenthesis.expected")); marker.done(XPathElementTypes.PARENTHESIZED_EXPR); }