private void searchFieldComments(Program program, Composite composite,
				SearchAndReplaceQuery query, Accumulator<QuickFix> accumulator) {

			DataTypeComponent[] definedComponents = composite.getDefinedComponents();
			Pattern searchPattern = query.getSearchPattern();

			for (int i = 0; i < definedComponents.length; i++) {
				DataTypeComponent component = definedComponents[i];
				String comment = component.getComment();
				if (comment == null) {
					continue;
				}
				Matcher matcher = searchPattern.matcher(comment);
				if (matcher.find()) {
					String newComment = matcher.replaceAll(query.getReplacementText());
					QuickFix item =
						new UpdateFieldCommentQuickFix(program, composite, component.getFieldName(),
							component.getOrdinal(), comment, newComment);
					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