boolean (Object value) { NodeDescriptor<?> parent = (value instanceof NodeDescriptor) ? ((NodeDescriptor<?>)value).getParentDescriptor() : null; return super.shouldBeShowing(value) || (parent != null && super.shouldBeShowing(parent)); }