protected void addNode(LazyMap<Function, List<GTreeNode>> nodesByFunction,
			SliceNode node) {

		Function function = node.getRemoteFunction();
		List<GTreeNode> nodes = nodesByFunction.get(function);
		if (nodes.contains(node)) {
			return; // never add equal() nodes
		}

		if (allowDuplicates) {
			nodes.add(node); // ok to add multiple nodes for this function with different addresses
		}

		if (nodes.isEmpty()) {
			nodes.add(node); // no duplicates allow; only add if this is the only node
			return;
		}

	}
True allows this node to contains children with the same name

@param allowDuplicates true to allow duplicate nodes
Ghidra/Features/DecompilerDependent/src/main/java/ghidra/app/plugin/core/decompiler/taint/slicetree/SliceNode.java