CONTRIB-4626 check for availability of setExpanded()