int (Property property, int startIndex) { int totalSize = 0; if (myExpandedProperties.remove(property.getPath())) { int size = getFilterChildren(property).size(); totalSize += size; for (int i = 0; i < size; i++) { totalSize += collapse(myProperties.remove(startIndex), startIndex); } } return totalSize; }