@Override
	public void findAll(Program program, SearchAndReplaceQuery query,
			Accumulator<QuickFix> accumulator, TaskMonitor monitor) throws CancelledException {

		Memory memory = program.getMemory();
		MemoryBlock[] blocks = memory.getBlocks();
		monitor.initialize(blocks.length, "Searching MemoryBlocks...");

		Pattern pattern = query.getSearchPattern();

		for (MemoryBlock block : blocks) {
			monitor.increment();
			Matcher matcher = pattern.matcher(block.getName());
			if (matcher.find()) {
				String newName = matcher.replaceAll(query.getReplacementText());
				RenameMemoryBlockQuickFix item =
					new RenameMemoryBlockQuickFix(program, block, newName);
				accumulator.add(item);
			}

		}

	}
{@link SearchAndReplaceHandler} for handling search and replace for memory block names.
Ghidra/Features/Base/src/main/java/ghidra/features/base/replace/handler/MemoryBlockSearchAndReplaceHandler.java