} else {
DefaultDockingPort port = (DefaultDockingPort) SwingUtilities.getAncestorOfClass(DefaultDockingPort.class, tab);
next = getNext(port, direction);
}
} else {
DockingSplitPane pane = (DockingSplitPane) SwingUtilities.getAncestorOfClass(DockingSplitPane.class, comp);
if (pane == null) {
return getFirstComponent(comp, direction);
}
Component left = pane.getLeftComponent();
Component right = pane.getRightComponent();
if (SwingUtilities.isDescendingFrom(comp, left)) {
if (direction > 0) {
next = getFirstComponent(right, direction);
} else {