ThrowableRunnable (final @NotNull PsiFile file) { return () -> { final Document document = PsiDocumentManager.getInstance(getProject()).getDocument(file); assertNotNull(document); CodeStyleManager.getInstance(getProject()).adjustLineIndent(file, file.getTextRange()); }; }