public Set<Long> chooseBySpace(String name, AddressSpace space) {
		Set<Long> result = new TreeSet<>();
		if (program != null) {
			StreamSupport.stream(program.getSymbolTable().getSymbols(name).spliterator(), false)
					.flatMap(sym -> streamAddresses(sym))
					.filter(a -> a.getAddressSpace() == space)
					.forEach(a -> result.add(a.getAddressableWordOffset()));
		}
		for (Address address : languageLabels.getOrDefault(name, Set.of())) {
			if (address.getAddressSpace() != space) {
				continue;
			}
			result.add(address.getAddressableWordOffset());
		}
		return result;
	}
Choose a label with the given name in the given space

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