[fix bug 991553] excluding invisible groups from UI

Update docstring of `get_annotated_groups` to say that it returns only visible groups.