Collection<StructureViewTreeElement> () { final ArrayList<StructureViewTreeElement> elements = new ArrayList<>(); MarkdownPsiStructureUtil.processContainer(getElement(), element -> elements.add(new MarkdownStructureElement(element))); return elements; }