List<Block> () { if (myNode.getElementType() != XmlElementType.XML_COMMENT) return EMPTY; final ArrayList<Block> result = new ArrayList<>(3); ASTNode child = myNode.getFirstChildNode(); boolean hasOuterLangElements = false; while (child != null) { if (child instanceof OuterLanguageElement) { hasOuterLangElements = true; } if (myBuilder.isOuterLanguageElement(child.getPsi())) { result.add(createTemplateFragmentWrapper(child)); } else { result.add(new XmlBlock(child, null, null, myXmlFormattingPolicy, getChildIndent(), null, isPreserveSpace())); } child = child.getTreeNext(); } return hasOuterLangElements ? result : EMPTY; }