private Symbol findSymbolToPromote(Symbol matching, Symbol primary, SourceType source) {
		// if the function is default, then the primary will be promoted
		if (source == SourceType.DEFAULT) {
			return primary;
		}
		// if the primary is a default, it needs to be deleted, so return it as the "promoted" symbol
		if (primary != null && primary.isDynamic()) {
			return primary;
		}
		// otherwise return a symbol that has the same name and namespce as the function (if it exists)
		return matching;
	}
Finds the appropriate symbol to promote when function is created.
<p>
And by promote, we really mean find the symbol that needs to be deleted before creating the
function symbol. If the found symbol is not dynamic, the function symbol will assume its name
and namespace.
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/database/symbol/SymbolManager.java