private List<GTreeNode> buildChildren() {

			List<ColorValueNode> nodes = new ArrayList<>();
			GThemeValueMap currentValues = themeManager.getCurrentValues();
			List<ColorValue> colors = currentValues.getColors();
			for (ColorValue colorValue : colors) {
				nodes.add(new ColorValueNode(colorValue));
			}

			nodes = organizeByIdRefs(nodes);

			int bins = 1;
			GroupingStrategy grouping = (GroupingStrategy) groupingCombo.getSelectedItem();
			switch (grouping) {
				case REF:
					return new ArrayList<>(nodes);
				case SAME_COLORS:
					List<ColorNode> grouped = groupSameColors(nodes);
					return new ArrayList<>(grouped);
				case BIN_8:
					bins = 8;
					grouped = groupSameColors(nodes);
					List<ColorNode> binned = binColors(grouped, bins);
					return new ArrayList<>(binned);
				case BIN_64:
					bins = 64;
					grouped = groupSameColors(nodes);
					binned = binColors(grouped, bins);
					return new ArrayList<>(binned);
				case BIN_512:
					bins = 512;
					grouped = groupSameColors(nodes);
					binned = binColors(grouped, bins);
					return new ArrayList<>(binned);
				default:
					return new ArrayList<>();
			}
		}
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