void (@NotNull ToolWindow window, int order) { if (window instanceof ToolWindowImpl toolWindow) { toolWindow.setSideToolAndAnchor(getAnchor(), isSplit(), order); } else { window.setAnchor(getAnchor(), null); window.setSplitMode(isSplit(), null); } }