List<Type> list = typeList.getList(element.getParent(), stream);
for (Type type : list) {
Map<RutaBasic, Collection<AnnotationFS>> map = new HashMap<RutaBasic, Collection<AnnotationFS>>();
AnnotationIndex<AnnotationFS> ai = cas.getAnnotationIndex(type);
for (AnnotationFS fs : ai) {
RutaBasic basic = stream.getFirstBasicInWindow(fs);
if (basic != null) {
Collection<AnnotationFS> collection = map.get(basic);
if (collection == null) {
collection = new HashSet<AnnotationFS>();
map.put(basic, collection);