RuleBuilder (IElementType token, IElementType parent) { final TokenSet tokenSet = TokenSet.create(token); RuleCondition before = new RuleCondition(TokenSet.create(parent), null, tokenSet); RuleCondition after = new RuleCondition(TokenSet.create(parent), tokenSet, null); return new RuleBuilder(before, after); }