void (OneOfLiterals literals) { add( new HtmlBuilder() .append(escaped("Literal")) //NON-NLS .append(styled("[", PyHighlighter.PY_BRACKETS)) .append(StreamEx .of(literals.literals) .map(PyLiteralType::getExpression) .map(expr -> styledExpression(expr.getText(), expr)) .collect(HtmlChunk.toFragment(styled(", ", PyHighlighter.PY_COMMA)))) .append(styled("]", PyHighlighter.PY_BRACKETS)) .toFragment()); }