MDL-38849 editor collapsing: cope with verbose languages