HtmlChunk (@NotNull PyNamedParameter parameter, @NotNull TypeEvalContext context) { final HtmlBuilder result = new HtmlBuilder(); result.append(styledSpan(StringUtil.notNullize(parameter.getName()), paramNameTextAttribute(parameter.isSelf()))); result.append(styledSpan(": ", PyHighlighter.PY_OPERATION_SIGN)); result.append(styledSpan(formatTypeWithLinks(context.getType(parameter), parameter, parameter, context), PyHighlighter.PY_ANNOTATION)); return result.toFragment(); }