void (@NotNull PyStringLiteralExpression docstring) { final StructuredDocString structured = DocStringUtil.parseDocString(docstring); final List<String> documentedAttributes = structured.getAttributes(); StreamEx.of(documentedAttributes).forEach(name -> { final String description = structured.getAttributeDescription(name); myFormatterFragments.add(new FormatterDocFragment(name, StringUtil.notNullize(description), FormatterDocFragmentType.ATTRIBUTE)); }); }