public static void alignLabels(List<GenericOptionsComponent> components) {
		int maxWidth = 0;
		int maxHeight = 0;
		for (GenericOptionsComponent optionComponent : components) {
			Dimension dimension = optionComponent.getPreferredAlignmentSize();
			maxWidth = Math.max(dimension.width, maxWidth);
			maxHeight = Math.max(dimension.height, maxHeight);
		}

		for (GenericOptionsComponent component : components) {
			component.setPreferredAlignmentSize(new Dimension(maxWidth, maxHeight));
		}
	}
Creates and sets a preferred alignment based upon the given list of option components.
@param components the list of options components from which to determine the alignment.
Ghidra/Framework/Docking/src/main/java/docking/options/editor/GenericOptionsComponent.java