private void fixupPrimarySymbols(Set<Address> set) {
		for (Address address : set) {
			Symbol[] symbols = getSymbols(address);

			// check if there is a valid consistent primary state amongst all the symbols at an address.
			if (hasValidPrimary(symbols)) {
				continue;
			}

			// otherwise, set them all to non-primary, find the best symbol to make primary and
			// make that one the primary symbol
			setAllSymbolsToNonPrimary(symbols);
			Symbol bestPrimary = findBestPrimary(symbols);
			bestPrimary.setPrimary();
		}
	}
Checks to make sure there is a single valid primary symbol at each address

@param set the set of addresses that may have to be fixed up
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/database/symbol/SymbolManager.java