void (@NotNull List<FormatterDocFragment> fragmentList) { fragmentList.forEach(fragment -> { final String html = fragment.html().toString(); if (html.isEmpty()) return; final HtmlBuilder section = switch (fragment.myFragmentType) { case ATTRIBUTE -> mySectionsMap.get(PyPsiBundle.message("QDOC.attributes")); case PARAMETER -> mySectionsMap.get(PyPsiBundle.message("QDOC.params")); case KEYWORD_ARGUMENT -> mySectionsMap.get(PyPsiBundle.message("QDOC.keyword.args")); case RAISE -> mySectionsMap.get(PyPsiBundle.message("QDOC.raises")); case RETURN -> mySectionsMap.get(PyPsiBundle.message("QDOC.returns")); }; section.appendRaw(html); }); }