private void addInterfaces(TypeElement typeElement, JsonObject obj) {
		JsonArray interfaceArray = new JsonArray();

		//@formatter:off
		typeElement.getInterfaces()
			.stream()
			.filter(DeclaredType.class::isInstance)
			.map(DeclaredType.class::cast)
			.map(declaredType -> declaredType.asElement())
			.filter(TypeElement.class::isInstance)
			.map(TypeElement.class::cast)
			.forEach(ifaceTypeElement -> interfaceArray.add(ifaceTypeElement.getQualifiedName().toString()));
		//@formatter:on

		obj.add("implements", interfaceArray);
	}
Parses the given {@link TypeElement} for any declared interfaces and adds them to the
json object.

@param typeElement the {@link TypeElement} to parse
@param obj the json object to populate
GhidraBuild/BuildFiles/Doclets/src/main/java/ghidra/doclets/json/JsonDoclet.java