private void buildTagCountCache() throws IOException {
		Map<FunctionTag, Counter> map = LazyMap.lazyMap(new HashMap<>(), () -> new Counter());
		RecordIterator records = functionTagMappingAdapter.getRecords();
		while (records.hasNext()) {
			DBRecord mappingRecord = records.next();
			long tagId = mappingRecord.getLongValue(FunctionTagMappingAdapter.TAG_ID_COL);
			FunctionTag tag = getFunctionTag(tagId);
			map.get(tag).increment();
		}
		tagCountCache = map;
	}
Returns all function tags associated with the given function id.

@param functionId the function id
@return the tags
@throws IOException if there is an issue reading from the db
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/database/function/FunctionTagManagerDB.java