Builds a "Name (detail, detail)" label from a name plus optional
details, dropping falsy parts and omitting the parentheses entirely
when none remain. Extracted to deduplicate the "filter present parts,
join, wrap in parens" idiom that several model display properties share.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>