protected DataTypeComponent findComponent(String name) {
		DataTypeComponent component = getComponentByOrdinal();
		if (component != null) {
			if (name.equals(component.getFieldName())) {
				return component;
			}
		}

		// perhaps it moved (has a different ordinal now)?
		DataTypeComponent[] components = composite.getDefinedComponents();
		for (int i = 0; i < components.length; i++) {
			if (name.equals(components[i].getFieldName())) {
				ordinal = i;
				return components[i];
			}
		}
		return null;
	}
Constructor
@param program the program containing the composite.
@param composite the composite being changed
@param ordinal the ordinal of the field within the composite
@param original the original name of the field
@param newName the new name for the field
Ghidra/Features/Base/src/main/java/ghidra/features/base/replace/items/CompositeFieldQuickFix.java