@Test
	public void testSingleStepBackwardsAll() {

		// search all fields in the backward direction
		ProgramLocation startLoc =
			new OperandFieldLocation(program, addr(0x0100415a), null, null, "%bp", 1, 1);

		// example
		// dword ptr param, EAX
		String searchText = "local_";
		SearchOptions options = new SearchOptions(searchText, false, false, false);

		searcher =
			new ListingDisplaySearcher(tool, program, startLoc, null, options, TaskMonitor.DUMMY);

		assertTrue(searcher.hasNext());
		while (searcher.hasNext()) {
			ProgramLocation location = searcher.next().programLocation();
			testForMatchingText(searchText, location);
		}
	}
Test the searcher that searches fields in the Code Browser
Ghidra/Features/Base/src/test.slow/java/ghidra/app/plugin/core/searchtext/ListingDisplaySearcherTest.java