@Override
  public FormattingModel createFormattingModelForPsiFile(final @NotNull PsiFile file,
                                                         final @NotNull Block rootBlock,
                                                         final CodeStyleSettings settings) {
    return new PsiBasedFormattingModel(file, rootBlock, FormattingDocumentModelImpl.createOn(file));
  }
@Override
  public FormattingModel createFormattingModelForPsiFile(final @NotNull PsiFile file,
                                                         final @NotNull Block rootBlock,
                                                         final CodeStyleSettings settings)