public String buildFunctionFilter() {
		StringBuilder buffer = new StringBuilder();
		if ((filterMask != 0) || (!childIds.isEmpty())) {
			buffer.append(", ");
			buildFunctionScriptFilter(buffer);
		}
		if ((!booleanElements.isEmpty()) || (!standaloneFilter.isEmpty())) {
			buffer.append(", ");
			buildParentFilterDocument(buffer);
		}
		return buffer.toString();
	}
Container for collecting an elasticsearch query filter document from BSimFilter elements
Ghidra/Features/BSim/src/main/java/ghidra/features/bsim/query/elastic/ElasticEffects.java