ASTNode (final List<Block> result, final @NotNull ASTNode child, final Wrap wrap, final Alignment alignment, final Indent indent) { ASTNode resultNode = child; ASTNode currentChild = child.getTreeNext(); while (currentChild != null && currentChild.getElementType() != XmlTokenType.XML_END_TAG_START) { if (!containsWhiteSpacesOnly(currentChild)) { currentChild = processChild(result, currentChild, wrap, alignment, indent); resultNode = currentChild; } if (currentChild != null) { currentChild = currentChild.getTreeNext(); } } return resultNode; }