void (String pattern) { TreePath[] paths = myTree.getSelectionModel().getSelectionPaths(); getSearchModel().refilter(); expandTreeOnSearchUpdateComplete(pattern); myTree.getSelectionModel().setSelectionPaths(paths); onSpeedSearchUpdateComplete(pattern); }