public void command(CLI cli) { Scope scope = Scope.ROOT_SCOPE; cli.getOut().println("Root scope: "); for (Map.Entry<String, List<Declaration>> scopeEntry : scope) { cli.getOut().println(scopeEntry.getKey() + ": "); for (Declaration decl : scopeEntry.getValue()) { cli.getOut() .println(" " + decl.getKind() + " " + decl.getName() + " (" + decl + ")"); } } }