public Dockable getGroupElement( LocationModeManager<? extends LocationMode> manager, Dockable dockable, ExtendedMode mode ){
DockStation parent = dockable.getDockParent();
if( parent instanceof StackDockStation ){
if( parent.asDockable().getDockParent() == null ){
// cannot move around a dockable without location
return dockable;
}
for( int i = 0, n = parent.getDockableCount(); i<n; i++ ){