for (ITextFlowTarget target : allTargets) {
Optional<Element> tuv = buildTargetTUV(target);
tuvSet.addAll(tuv.asSet());
}
} else {
ITextFlowTarget target = tf.getTargetContents(this.localeId);
if (target != null) {
Optional<Element> tuv = buildTargetTUV(target);
tuvSet.addAll(tuv.asSet());
}
}