EList _children = rv.getChildren();
Iterable<SvgStopElement> _filter = Iterables.<SvgStopElement>filter(_children, SvgStopElement.class);
boolean _isEmpty = IterableExtensions.isEmpty(_filter);
if (_isEmpty) {
if ((element instanceof XLinkAttributes)) {
final XLinkAttributes v = ((XLinkAttributes) element);
SvgElement _resolvedInstance = v.getResolvedInstance();
boolean _notEquals = (!Objects.equal(_resolvedInstance, null));
if (_notEquals) {
SvgElement _resolvedInstance_1 = v.getResolvedInstance();
return this.resolveGradientStopElement(_resolvedInstance_1);
}
}
} else {
return rv;