MergedHorizontalScrollBarModel (@NotNull JScrollBar bar, @NotNull EditorEx first, @NotNull EditorEx second) { MergedHorizontalScrollBarModel model = new MergedHorizontalScrollBarModel(bar, first, second); bar.setModel(model); model.setEnabled(true); return model; }