private List<MemorySymbol> findPinnedMemorySymbols(Address minAddr, Address maxAddr) {
		List<MemorySymbol> pinnedSymbols = new ArrayList<>();
		for (Symbol symbol : getSymbolIterator(minAddr, true)) {
			if (!(symbol instanceof MemorySymbol memSym)) {
				throw new AssertionError(
					"Unexpected symbol type within memory range: " + symbol.getClass());
			}
			if (memSym.getAddress().compareTo(maxAddr) > 0) {
				break;
			}
			if (memSym.isPinned()) {
				pinnedSymbols.add(memSym);
			}
		}
		return pinnedSymbols;
	}
Checks if the givens symbols from the same address have exactly one primary symbol amongst
them

@param symbols the array of symbols at a an address
@return true if there is exactly one primary symbol at the address (also true if no symbols
        at address)
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/database/symbol/SymbolManager.java