boolean (@NotNull Object element) { if (element instanceof HierarchyNodeDescriptor descriptor){ Object[] cachedChildren = descriptor.getCachedChildren(); return cachedChildren == null && descriptor.isValid(); } return false; }