@Override
	public void loadData(Accumulator<QuickFix> accumulator, TaskMonitor monitor)
			throws CancelledException {

		Accumulator<QuickFix> wrappedAccumulator =
			new SizeRestrictedAccumulatorWrapper<QuickFix>(accumulator, query.getSearchLimit());
		try {
			query.findAll(program, wrappedAccumulator, monitor);
		}
		catch (AccumulatorSizeException e) {
			searchLimitExceeded = true;
		}
		finally {
			hasResults = !accumulator.isEmpty();
		}
	}
Class for loading search and replace items into a ThreadedTableModel.
Ghidra/Features/Base/src/main/java/ghidra/features/base/replace/SearchAndReplaceQuckFixTableLoader.java