DataGrid vertical column header rows cells merge

how do I combine cells vertically in the DataGrid header? I combine some header cells in DataGrid.But now it looks disgusting because the other cells are empty. Jmix version 1.4.1

I need DataGrid header like this:

example

Now I have this on the screen:

example

(P. S. Without shadow =D )