void (PsiBuilder builder) { checkMatches(builder, XPathTokenTypes.LPAREN, XPathBundle.message("parsing.error.opening.parenthesis.expected")); if (builder.getTokenType() != XPathTokenTypes.RPAREN) { if (!parseArgument(builder)) { builder.error(XPathBundle.message("parsing.error.expression.expected")); } } while (builder.getTokenType() == XPathTokenTypes.COMMA) { builder.advanceLexer(); if (!parseArgument(builder)) { builder.error(XPathBundle.message("parsing.error.expression.expected")); } } checkMatches(builder, XPathTokenTypes.RPAREN, XPathBundle.message("parsing.error.closing.parenthesis.expected")); }