private boolean isSingleExternalEntryPoint(Program program, int externalCount,
			Set<Address> doNowSet) {
		SymbolTable symbolTable = program.getSymbolTable();
		if (externalCount == 1 && doNowSet.size() == 1) {
			if (symbolTable.getPrimarySymbol(doNowSet.iterator().next()).isExternalEntryPoint()) {
				return true;
			}
		}
		return false;
	}
Check for a single external entry point.

@param program - program to check
@param externalCount - count of external entry points found
@param doNowSet - set of functions that are to be done now

@return true if this program has only one external entry point
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/disassembler/EntryPointAnalyzer.java