private static boolean containsPrimarySymbol(SymbolTable symTab, String name) {
		List<Symbol> syms = symTab.getSymbols(name, null);
		for (Symbol symbol : syms) {
			SymbolType type = symbol.getSymbolType();
			if (type != SymbolType.FUNCTION && type != SymbolType.LABEL) {
				continue;
			}
			if (symbol.isPrimary()) {
				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