void (@NotNull PsiFile file, @NotNull Editor editor, int caretOffset, int rBracesInsertOffset, String generatedRBraces) { final Document document = editor.getDocument(); insertRBracesAtPosition(document, caretOffset, rBracesInsertOffset, generatedRBraces); formatCodeFragmentBetweenBraces(file, document, editor, caretOffset, rBracesInsertOffset, generatedRBraces); }