@Override
	public Component getTreeCellRendererComponent(JTree tree, Object value, boolean sel,
			boolean expanded, boolean leaf, int row, boolean isFocused) {

		super.getTreeCellRendererComponent(tree, value, sel, expanded, leaf, row, isFocused);
		ProgramNode node = (ProgramNode) value;

		Group group = node.getGroup();
		Icon icon = null;
		boolean isInView = node.isInView();

		if (group == null && !node.isRoot()) {
			// must be a document
			if (node.isDeleted()) {
				icon = iconMap.get(DISABLED_DOCS);
			}
			else {
				icon = iconMap.get(DOCS);
			}
		}
		else if (node.isFragment()) {
			icon = getFragmentIcon(node, isInView);
		}
		else {
			icon = getFolderIcon(expanded, leaf, node, isInView);
		}

		if (icon != null) {
			setIcon(icon);
		}
		setSelectionColors(sel, row, node, (DragNDropTree) tree);
		return this;
	}
Configures the renderer based on the passed in components.
The icon is set according to value, expanded, and leaf
parameters.
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/programtree/DnDTreeCellRenderer.java