@Nullable
  FormattingModel createTemplateFormattingModel(@NotNull PsiFile psiFile,
                                                       @NotNull TemplateLanguageFileViewProvider viewProvider,
                                                       @NotNull OuterLanguageElement outerTemplateElement,
                                                       @NotNull CodeStyleSettings settings,
                                                       @Nullable Indent indent) throws FragmentedTemplateException {
    List<PsiElement> templateElements = getTreeElementsInsideOuterFragment(viewProvider, outerTemplateElement);
    return createTemplateFormattingModelInternal(psiFile, settings, getPolicy(settings, psiFile), templateElements, indent);
  }
@Nullable
  FormattingModel createTemplateFormattingModel(@NotNull PsiFile psiFile,
                                                       @NotNull TemplateLanguageFileViewProvider viewProvider,
                                                       @NotNull OuterLanguageElement outerTemplateElement,
                                                       @NotNull CodeStyleSettings settings,
                                                       @Nullable Indent indent)