boolean (TreePath path) { if (getParent() == null) return false; if (path == null) return false; if (!myWizardTree.isCollapsed(path)) return false; if (myWizardTree.isRootVisible()) { return path.getPathCount() == 1; } return path.getPathCount() == 2; }