private boolean nameExistsSomewhereElse(SymbolTable symTab, String baseName) {
		if (multiMatchNames.containsKey(baseName)) {
			// If this name is part of a multimatch, don't treat as a definitive label
			return false;
		}
		//I did it this way because doing it with an iterator and wildcard was really really slow
		if (containsPrimarySymbol(symTab, baseName)) {
			return true;
		}
		if (containsPrimarySymbol(symTab, "_" + baseName)) {
			return true;
		}
		if (containsPrimarySymbol(symTab, "__" + baseName)) {
			return true;
		}

		return false;
	}
Takes a set of FID matching names and returns a subset that includes only names that don't exist
somewhere else in the program.
Ghidra/Features/FunctionID/src/main/java/ghidra/feature/fid/cmd/ApplyFidEntriesCommand.java