PyDocstringGenerator (@NotNull PyDocStringOwner owner) { String indentation = ""; if (owner instanceof PyStatementListContainer) { indentation = PyIndentUtil.getElementIndent(((PyStatementListContainer)owner).getStatementList()); } final String docStringText = owner.getDocStringExpression() == null ? null : owner.getDocStringExpression().getText(); return new PyDocstringGenerator(owner, docStringText, DocStringUtil.getConfiguredDocStringFormatOrPlain(owner), indentation, owner); }