void (@NotNull FileViewProvider viewProvider) { final PsiFile file = viewProvider.getPsi(viewProvider.getBaseLanguage()); FormattingService formattingService = FormattingServiceUtil.findService(file, false, false); commitDocument(viewProvider); formattingService.formatRanges(file, getRanges(formattingService), true, true); }