private boolean isSelected(TreePath path) {
    TreePath[] selectionPaths = getSelectionPaths();
    return selectionPaths != null && ArrayUtil.contains(path, selectionPaths);
  }
private boolean isSelected(TreePath path)