chameleonPsiElement.getNode(),
chameleonPsiElement.getTextRange());
descriptors.add(foldingDescriptor);
FoldingBuilder foldingBuilder = LanguageFolding.INSTANCE.forLanguage(chameleonPsiElement.getLanguage());
FoldingDescriptor[] nestedDescriptors = foldingBuilder.buildFoldRegions(chameleonPsiElement.getNode(), document);
descriptors.addAll(Arrays.asList(nestedDescriptors));
}
child = child.getNextSibling();
}