private List<ColorNode> groupSameColors(List<ColorValueNode> nodes) {
			Map<Color, ColorNode> colorMap = new HashMap<>();
			for (ColorNode node : nodes) {
				Color color = node.getColor();
				ColorNode group = colorMap.computeIfAbsent(color, k -> new SameColorGroupNode(k));
				group.addNode(node);
			}
			return new ArrayList<>(colorMap.values());
		}
Tree for showing colors organized by similar colors and reference relationships. This was
built as a developer aid to help consolidate similar colors in Ghidra. This may be removed
at any time.
Ghidra/Framework/Docking/src/main/java/docking/theme/gui/ThemeColorTree.java