return null;
}
if (node.isInline()) {
HiddenTokenAwareTree underlyingStructure = node.getUnderlyingStructure();
StyleSheet result = new StyleSheet(underlyingStructure);
InlineContent content = new InlineContent(underlyingStructure, importedContent);
result.addMember(content);
result.configureParentToAllChilds();
astManipulator.replaceInBody(node, content);
return result;
}
StyleSheet importedAst = buildImportedAst(node, importedSource, importedContent);
if (node.isReferenceOnly() || node.isSilent()) {
astManipulator.setTreeSilentness(importedAst, true);
}
astManipulator.replaceInBody(node, importedAst.getChilds());
return importedAst;
}