protected List<LocationReference> getReferences(LocationDescriptor locationDescriptor) {

		waitForTable();

		Accumulator<LocationReference> accumulator = new ListAccumulator<>();
		runSwing(() -> {
			try {
				locationDescriptor.getReferences(accumulator, TaskMonitor.DUMMY, false);
			}
			catch (CancelledException e) {
				// can't happen!
			}
		});

		List<LocationReference> list = new ArrayList<>(accumulator.get());
		return list;
	}
A base class for use by tests that exercise various types of
{@link LocationDescriptor}.
Ghidra/Features/Base/src/test.slow/java/ghidra/app/plugin/core/navigation/locationreferences/AbstractLocationReferencesTest.java