protected Font getFont(boolean bold) {
		Font font = getFont();
		// check if someone set a  new font on the renderer
		if (font != cachedDefaultFont && font != cachedBoldFont) {
			cachedDefaultFont = font;

			// Bug Alert!:
			// We must create a new font here and not use deriveFont().  Using derive font has
			// bugs when calculating the string width for a bold derived font.
			cachedBoldFont = font.deriveFont(Font.BOLD);
		}
		return bold ? cachedBoldFont : cachedDefaultFont;
	}
Checks and converts any {@link GColorUIResource} to a {@link GColor}
@param color the color to check if it is a {@link UIResource}
@return either the given color or if it is a {@link GColorUIResource}, then a plain
{@link GColor} instance referring to the same theme color  property id.
Ghidra/Framework/Docking/src/main/java/docking/widgets/tree/support/GTreeRenderer.java