private void doTest(/*@Language("BNF")*/ String text, /*@Language("BNF")*/ String expected) {
PsiFile file = myFixture.configureByText("a.bnf", text);
BnfRule rule = PsiTreeUtil.getChildOfType(file, BnfRule.class);
assertNotNull(rule);
new BnfInlineRuleProcessor(rule, getProject(), null, false).run();
assertSameLines(expected, file.getText());
}