void (@NotNull PyDocStringOwner docStringOwner, @Nullable Editor editor) { final PyDocstringGenerator docstringGenerator = PyDocstringGenerator .forDocStringOwner(docStringOwner) .withInferredParameters(false) .addFirstEmptyLine(); final PyStringLiteralExpression updated = docstringGenerator.buildAndInsert().getDocStringExpression(); if (updated != null && editor != null) { final int offset = updated.getTextOffset(); editor.getCaretModel().moveToOffset(offset); editor.getCaretModel().moveCaretRelatively(0, 1, false, false, false); } }