Please, lets add extracting annotation starting specific section. We need it for patching "Popup" extension (show popup with annotation, when link points to some specific section like [[article#section]].
I have look at code of the extension, and I am not sure, what API should be used to point to specific section (may be separate parameter "exsection", but then we will lost possibility to get several extractions…
$titles = $this->getPageSet()->getGoodTitles();
Please, add this feature anyway how... you should know how to do it better.