}
public ProblemDescriptor[] checkFile(@NotNull PsiFile file, @NotNull InspectionManager manager, boolean isOnTheFly) {
if (file instanceof BnfFile) {
BnfFile bnfFile = (BnfFile)file;
ExpressionHelper expressionHelper = ExpressionHelper.getCached(bnfFile);
BnfFirstNextAnalyzer analyzer = new BnfFirstNextAnalyzer();
ArrayList<ProblemDescriptor> list = new ArrayList<ProblemDescriptor>();
for (BnfRule rule : bnfFile.getRules()) {
String ruleName = rule.getName();
boolean exprParsing = ExpressionGeneratorHelper.getInfoForExpressionParsing(expressionHelper, rule) != null;