private void addPrebuiltItem(DefaultMutableTreeNode tn, Path tocPath,
			Map<String, TOCItemExternal> mapByDisplay) {

		Object userObject = tn.getUserObject();
		CustomTreeItemDecorator item = (CustomTreeItemDecorator) userObject;
		if (item != null) {
			DefaultMutableTreeNode parent = (DefaultMutableTreeNode) tn.getParent();
			TOCItemExternal parentItem = null;
			if (parent != null) {
				CustomTreeItemDecorator dec = (CustomTreeItemDecorator) parent.getUserObject();
				if (dec != null) {
					parentItem = mapByDisplay.get(dec.getTocID());
				}
			}

			ID targetID = item.getID();
			String displayText = item.getDisplayText();
			String tocId = item.getTocID();
			String target = targetID == null ? null : targetID.getIDString();
			TOCItemExternal external = new TOCItemExternal(parentItem, tocPath, tocId, displayText,
				target, item.getName(), -1);
			mapByDisplay.put(tocId, external);
		}

		@SuppressWarnings("rawtypes")
		Enumeration children = tn.children();
		while (children.hasMoreElements()) {
			DefaultMutableTreeNode child = (DefaultMutableTreeNode) children.nextElement();
			addPrebuiltItem(child, tocPath, mapByDisplay);
		}
	}
Creates a help module collection that assumes zero or more pre-built help jar files and
one help directory that is an input into the help building process.
@param locations the locations from which to get help
@return the help collection
Ghidra/Framework/Help/src/main/java/help/validator/location/HelpModuleCollection.java