private boolean isTagInFunction(String name, Program program, String address) {

		Address entryPoint = addr(address, program);

		FunctionManagerDB functionManagerDB = (FunctionManagerDB) program.getFunctionManager();
		Function function = functionManagerDB.getFunctionAt(entryPoint);
		Collection<FunctionTag> tags = function.getTags();
		for (FunctionTag tag : tags) {
			if (tag.getName().equals(name)) {
				return true;
			}
		}

		return false;
	}
Searches a function for a tag.

@param name the tag to search for
@param program the program to search
@param address the address of the function, as a string
@return true if found
Ghidra/Features/Base/src/test.slow/java/ghidra/app/plugin/core/function/tags/FunctionTagMergeTest.java