((BooleanExpression) valueObject).getBooleanValue(element.getParent()));
} else if (valueObject instanceof TypeExpression) {
TypeExpression type = (TypeExpression) valueObject;
List<AnnotationFS> annotationsInWindow = stream.getAnnotationsInWindow(matchedAnnotation,
type.getType(element.getParent()));
if (typeSystem.subsumes(jcas.getCasType(FSArray.type), range)) {
structure
.setFeatureValue(targetFeature, UIMAUtils.toFSArray(jcas, annotationsInWindow));
} else if (typeSystem.subsumes(range, type.getType(element.getParent()))
&& !annotationsInWindow.isEmpty()) {
AnnotationFS annotation = annotationsInWindow.get(0);