void () { ContentManager manager = getManager(); if (manager == null) return; boolean selected = manager.isSelected(this); TabDescriptor selectedTab = selectedTab(); List<TabDescriptor> tabsCopy = new ArrayList<>(myTabs); manager.removeContent(this, false); ContentUtilEx.setSplitMode(myId.getId(), true); for (TabDescriptor tab : tabsCopy) { ContentUtilEx.addSplitTabbedContent(manager, myId, tab, selected && tab == selectedTab); } Disposer.dispose(this); }