@Override
		protected void search(Program program, DataType dataType, SearchAndReplaceQuery query,
				Accumulator<QuickFix> accumulator) {

			if (!(dataType instanceof Composite composite)) {
				return;
			}
			DataTypeComponent[] definedComponents = composite.getDefinedComponents();
			Pattern searchPattern = query.getSearchPattern();

			for (int i = 0; i < definedComponents.length; i++) {
				DataTypeComponent component = definedComponents[i];
				String name = getFieldName(component);
				Matcher matcher = searchPattern.matcher(name);
				if (matcher.find()) {
					String newName = matcher.replaceAll(query.getReplacementText());
					int ordinal = component.getOrdinal();
					QuickFix item =
						new RenameFieldQuickFix(program, composite, ordinal, name, newName);
					accumulator.add(item);
				}
			}
		}
{@link SearchAndReplaceHandler} for handling search and replace for datatype names,
structure and union field names, structure and union field comments, enum value names,
and enum value comments.
Ghidra/Features/Base/src/main/java/ghidra/features/base/replace/handler/DataTypesSearchAndReplaceHandler.java