void (PropertiesContainer<?> component, Property property, List<? super Property> properties) { if (isExpanded(property)) { for (Property child : getChildren(property)) { if (addIfNeeded(component, child, properties)) { addExpandedChildren(component, child, properties); } } } }