private Collection<String> getTags(FunctionDB function) {

		if (function == null) {
			return Collections.emptyList();
		}

		Collection<FunctionTag> tags = function.getTags();
		if (tags.isEmpty()) {
			return Collections.emptyList();
		}

		// @formatter:off
		return tags.stream()
				   .sorted()
				   .map(t -> t.getName())
				   .collect(Collectors.toList());
		// @formatter:on
	}
Returns all function tags associated with the given function.

@param function the function to retrieve the tags from
@return list of function tag names
Ghidra/Features/Base/src/main/java/ghidra/app/util/viewer/field/FunctionTagFieldFactory.java