return true;
}
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;
if (!exprParsing && analyzer.asStrings(analyzer.calcFirst(rule)).contains(ruleName)) {
list.add(manager.createProblemDescriptor(rule.getId(), "'" + ruleName + "' employs left-recursion unsupported by generator",