getFragmentAnnotations function

Gets annotations in fragments.