void (@NotNull PsiFile file, @NotNull Editor editor, int offset, @Nullable Language language) { PsiDocumentManager.getInstance(file.getProject()).commitDocument(editor.getDocument()); try { CodeStyleManager.getInstance(file.getProject()).adjustLineIndent(file, offset); } catch (IncorrectOperationException e) { LOG.error(e); } }