void (Lexer lexer) { skipWhiteSpaceAndComments(lexer); if (lexer.getTokenType() == JavaTokenType.LPARENTH) { lexer.advance(); int depth = 1; while (depth > 0) { IElementType tokenType = lexer.getTokenType(); if (tokenType == JavaTokenType.LPARENTH) { depth++; } else if (tokenType == JavaTokenType.RPARENTH) { depth--; } else { if (tokenType == null) { break; } } lexer.advance(); } skipWhiteSpaceAndComments(lexer); } }