protected final static String formatStatus(String message, boolean error) {
		Color color = error ? Colors.Messages.ERROR : Colors.FOREGROUND;
		String messageWithFont = HTMLUtilities.setFont(message, color, 12);
		String html = HTMLUtilities.wrapAsHTML(messageWithFont);
		return html;
	}
Uses HTML to format and color a string depending on if it is an error or not.

@param message the message to format.
@param error true if the message is an error; false otherwise
@return an HTML string suitable for a JLabel.
Ghidra/Framework/Docking/src/main/java/docking/widgets/table/constrainteditor/AbstractColumnConstraintEditor.java