// add media queries if needed
if (node.hasMediums()) {
HiddenTokenAwareTree underlyingStructure = node.getUnderlyingStructure();
StyleSheet result = new StyleSheet(underlyingStructure);
Media media = new Media(underlyingStructure);
result.addMember(media);
media.setParent(result);
media.setMediums(node.getMediums());
GeneralBody mediaBody = new GeneralBody(underlyingStructure, importedAst.getMembers());
media.setBody(mediaBody);
media.configureParentToAllChilds();
mediaBody.configureParentToAllChilds();
return result;
}
return importedAst;