@NotNull @Override protected List<XmlElementsGroup> compute() { return ContainerUtil.map(myParticle.getSubParticles(), new Function<XmlContentParticle, XmlElementsGroup>() { @Override public XmlElementsGroup fun(XmlContentParticle xmlContentParticle) { return new XmlElementsGroupImpl(xmlContentParticle, XmlElementsGroupImpl.this); } }); }
public XmlElementsGroupImpl(@NotNull XmlContentParticle particle, XmlElementsGroup parent) { myParticle = particle; myParent = parent; }
@Override public XmlContentParticle[] getSubParticles() { return myParticles.getValue(); }
@Override public XmlContentParticle[] getSubParticles() { return new XmlContentParticle[0]; }