public List<ModuleParameterSymbol> getAllModuleParameterSyms() { List<ModuleParameterSymbol> result = moduleScope.getSymbolsOfType(ModuleParameterSymbol.class); for (ModuleIdentifier e : moduleScope.getInheritedIdentifiers()) { try { ModuleScopeBuilder s = symtab.getModuleScope(e); result.addAll(s.getSymbolsOfType(ModuleParameterSymbol.class)); } catch (NoSuchModuleException e1) { // should've been caught a long time ago throw new RuntimeException(e1); } } return result; }