public static void doGenerateDocstring(@NotNull PyDocStringOwner docStringOwner, @Nullable Editor editor) {
    final PyDocstringGenerator docstringGenerator = PyDocstringGenerator
      .forDocStringOwner(docStringOwner)
      .withInferredParameters(false)
      .addFirstEmptyLine();
    final PyAstStringLiteralExpression 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);
    }
  }
public static void doGenerateDocstring(@NotNull PyDocStringOwner docStringOwner, @Nullable Editor editor)