void (@NotNull PyDocStringOwner docStringOwner) { if (docStringOwner instanceof PyFunction || docStringOwner instanceof PyClass && ((PyClass)docStringOwner).findInitOrNew(false, null) != null) { doGenerateDocstring(docStringOwner, PyQuickFixUtil.getEditor(docStringOwner)); } }