private List<ColorNode> binColors(List<ColorNode> nodes, int bins) {
			int shift = computeShift(bins);
			Map<Color, ColorNode> binnedColorMap = new HashMap<>();
			for (ColorNode node : nodes) {
				Color binnedColor = binColor(node, shift);
				ColorNode group =
					binnedColorMap.computeIfAbsent(binnedColor, k -> new ColorNode(k, "Bin "));
				group.addNode(node);
			}
			return new ArrayList<>(binnedColorMap.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