List<AntDomElement> () { final List<DomElement> children = DomUtil.getDefinedChildren(this, true, false); final int size = children.size(); if (size == 0) { return Collections.emptyList(); } final List<AntDomElement> antChildren = new ArrayList<AntDomElement>(size); for (DomElement child : children) { if (child instanceof AntDomElement) { antChildren.add((AntDomElement)child); } } return antChildren; }