public Grammar getImportedGrammar(String name) {
		for (Grammar g : importedGrammars) {
            if ( g.name.equals(name) ) return g;
        }
        return null;
    }
Return grammar directly imported by this grammar
tool/src/org/antlr/v4/tool/Grammar.java