@Override
	protected BSimApplyResult apply(Function target, Function source) {
		String defaultFunctionName = SymbolUtilities.getDefaultFunctionName(source.getEntryPoint());
		if (defaultFunctionName.equals(source.getName())) {
			return new BSimApplyResult(target, source, BSimResultStatus.ERROR,
				"Can't apply default function names");
		}
		String targetFullName = target.getName(true);
		String sourceFullName = source.getName(true);

		if (targetFullName.equals(sourceFullName)) {
			return new BSimApplyResult(target, source, BSimResultStatus.IGNORED,
				"Functions already have the same name");
		}

		try {
			FunctionUtility.applyNameAndNamespace(target, source);
		}
		catch (Exception e) {
			return new BSimApplyResult(target, source, BSimResultStatus.ERROR,
				"Rename failed (" + e.getMessage() + ")");
		}

		return new BSimApplyResult(target, source, BSimResultStatus.NAME_APPLIED, "");
	}
Task for applying names and namespaces from a match function to the queried function
Ghidra/Features/BSim/src/main/java/ghidra/features/bsim/gui/search/results/apply/NameAndNamespaceBSimApplyTask.java