private void suggestFromProgramBySpace(List<String> result, String got, int max,
			AddressSpace space) {
		int count = 0;
		for (Symbol s : program.getSymbolTable().scanSymbolsByName(got)) {
			if (count >= max || !s.getName().startsWith(got)) {
				return;
			}
			if (!streamAddresses(s).anyMatch(a -> a.getAddressSpace() == space)) {
				continue;
			}
			result.add(s.getName());
			count++;
		}
	}
Choose a symbol with the given name, using the space as a hint

<p>
If a space is not given, or if that space is the constant space, then this will choose from
all symbols, via {@link #chooseAll(String)}. If a space is given, and it is not the constant
space, then this will choose from symbols in the given space, via
{@link #chooseBySpace(String, AddressSpace)}.

@param name the name
@param space the address space, or null
@return the equate value, or label addressable word offset, or null
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/app/plugin/assembler/sleigh/symbol/AssemblyNumericSymbols.java