return new SimpleTemplateLanguageFormattingModelBuilder().createModel(element, settings);
}
else {
rootBlock = getRootBlock(file, file.getViewProvider(), settings);
}
return new DocumentBasedFormattingModel(rootBlock, element.getProject(), settings, file.getFileType(), file);
}