FormattingModel (@NotNull FormattingContext formattingContext) { CodeStyleSettings settings = formattingContext.getCodeStyleSettings(); JsonCodeStyleSettings customSettings = settings.getCustomSettings(JsonCodeStyleSettings.class); SpacingBuilder spacingBuilder = createSpacingBuilder(settings); final JsonBlock block = new JsonBlock(null, formattingContext.getNode(), customSettings, null, Indent.getSmartIndent(Indent.Type.CONTINUATION), null, spacingBuilder); return FormattingModelProvider.createFormattingModelForPsiFile(formattingContext.getContainingFile(), block, settings); }