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