IDEA-130359 Overlapping collapse areas not supported correctly

added a test for Dart