public <T extends DWARFAttributeValue> T findAttributeInChildren(DWARFAttribute attribute,
			DWARFTag childTag, Class<T> clazz) {
		T attributeValue = getAttribute(attribute, clazz);
		if (attributeValue != null) {
			return attributeValue;
		}
		for (DebugInfoEntry childDIE : getChildren(childTag)) {
			DIEAggregate childDIEA = getProgram().getAggregate(childDIE);
			attributeValue = childDIEA.getAttribute(attribute, clazz);
			if (attributeValue != null) {
				return attributeValue;
			}
		}
		return null;
	}
Return an attribute that is present in this {@link DIEAggregate}, or in any of its
direct children (of a specific type)
 
@param <T> attribute value type
@param attribute the attribute to find
@param childTag the type of children to search
@param clazz type of the attribute to return
@return attribute value, or null if not found
Ghidra/Features/Base/src/main/java/ghidra/app/util/bin/format/dwarf/DIEAggregate.java