PackageDependenciesNode (List<String> groupPath, ScopeType scopeType) { final String key = StringUtil.join(groupPath, ","); ModuleGroupNode groupNode = getMap(myModuleGroupNodes, scopeType).get(key); if (groupNode == null) { groupNode = new ModuleGroupNode(new ModuleGroup(groupPath), myProject); getMap(myModuleGroupNodes, scopeType).put(key, groupNode); getRootNode(scopeType).add(groupNode); } if (groupPath.size() > 1) { final PackageDependenciesNode node = getParentModuleGroup(groupPath.subList(0, groupPath.size()-1), scopeType); node.add(groupNode); } return groupNode; }