public class MathematicaFormattingModelBuilder implements FormattingModelBuilder {
@NotNull
@Override
public FormattingModel createModel(PsiElement element, CodeStyleSettings settings) {
CommonCodeStyleSettings commonSettings = settings.getCommonSettings(MathematicaLanguage.INSTANCE);
MathematicaCodeStyleSettings mathematicaSettings = settings.getCustomSettings(MathematicaCodeStyleSettings.class);
return FormattingModelProvider.createFormattingModelForPsiFile(
element.getContainingFile(),
AbstractMathematicaBlock.createMathematicaBlock(element, commonSettings, mathematicaSettings),