private void doSetBackgroundColor(Color color) {
		setBackground(color);
		contentPanel.setBackground(color);
		userTextArea.setBackground(color);
		controller.removeColor(vertex);
		controller.repaint();

		if (color.equals(defaultBackgroundColor)) {
			return;
		}

		FunctionGraphOptions options = controller.getFunctionGraphOptions();
		if (!options.getUpdateGroupColorsAutomatically()) {
			return;
		}

		Set<FGVertex> vertices = groupVertex.getVertices();
		for (FGVertex groupedVertex : vertices) {
			groupedVertex.setBackgroundColor(color);
		}
	}
A bit of a hack that triggers the text area to update its preferred height now before we
render so that it doesn't change later.
Ghidra/Features/FunctionGraph/src/main/java/ghidra/app/plugin/core/functiongraph/graph/vertex/GroupedFunctionGraphComponentPanel.java