We need to extend this function to extend the capabilities JSON with information regarding the capabilities of entire subtree https://github.com/eBPFDevSecTools/annotations-search-ui/blob/main/src/annotator.py#L32