void (@NotNull ModPsiUpdater updater, @NotNull PsiCodeBlock block) { PsiFile file = block.getContainingFile(); Document document = file.getViewProvider().getDocument(); Project project = file.getProject(); updater.moveTo(Objects.requireNonNull(block.getRBrace())); PsiDocumentManager.getInstance(project).doPostponedOperationsAndUnblockDocument(document); TextRange finallyBlockRange = block.getTextRange(); int newLineOffset = finallyBlockRange.getStartOffset() + 2; CodeStyleManager.getInstance(project).adjustLineIndent(document, newLineOffset); updater.moveToPrevious('\n'); }