void (RadComponent component, int feedback) { if (component != null) { TreePath path = getPath(component); if (feedback == INSERT_SELECTION) { myTree.scrollPathToVisible(path); if (!myTree.isExpanded(path)) { myTreeModel.expand(component, myTree, p -> { }); } } else { myTree.scrollRowToVisible(myTree.getRowForPath(path) + (feedback == INSERT_BEFORE ? -1 : 1)); } } myTree.mark(component, feedback); }