void (WatchNode node) { int index = getIndex(node); if (inlinesRootNodeIsShown()) { index--; } if (index > 0) { ContainerUtil.swapElements(getWatchChildren(), index, index - 1); } fireNodeStructureChanged(); int selectionRow = inlinesRootNodeIsShown() ? index : index - 1; getTree().setSelectionRow(selectionRow); }