private boolean isTagInProgram(String name, Program program) throws IOException {

		Collection<? extends FunctionTag> resultTags = getAllTags(program);

		// @formatter:off
       	return resultTags.stream()
		      		     .filter(t -> t.getName().equals(name)) 
		       		     .count() > 0;
		// @formatter:on
	}
Searches a program for a tag.

Note: This has nothing to do with functions; only checks that the tag exists.

@param name the tag to search for
@param program the program to search
@return true if found
@throws IOException
Ghidra/Features/Base/src/test.slow/java/ghidra/app/plugin/core/function/tags/FunctionTagMergeTest.java