public static Map<Rule, Set<Rule>> getRuleDependencies(LexerGrammar g, String modeName) {
		return getRuleDependencies(g, g.modes.get(modeName));
	}
Find all rules reachable from r directly or indirectly for all r in g
tool/src/org/antlr/v4/semantics/UseDefAnalyzer.java