@Override
			public Dimension getPreferredSize() {
				Dimension preferredSize = super.getPreferredSize();
				FormatManager formatManager = getController().getMinimalFormatManager();
				int maxWidth = formatManager.getMaxWidth();
				if (maxWidth <= 0) {
					return preferredSize;
				}

				// don't let a big format, like the function signature, dictate our group width
				maxWidth = Math.min(maxWidth, 300);

				preferredSize.width = maxWidth;
				return preferredSize;
			}
This panel looks similar in appearance to the LisGraphComponentPanel, with a header, actions
and a body.
Ghidra/Features/FunctionGraph/src/main/java/ghidra/app/plugin/core/functiongraph/graph/vertex/GroupedFunctionGraphComponentPanel.java