public void add(Object parent, Object object) {
      if (object == null) {
        return;
      }
      boolean newObject = !seen.contains(object);
      if (newObject) {
        seen.add(object);
        boolean visitChildren = visitor.visit(parent, object);
        if (visitChildren) {
          stack.add(object);
        }
      }
    }
Visit an object

@param parent the parent of the object
@param object the object we are visiting
@return true the search should continue on and visit the children of this object as well
geode-core/src/main/java/org/apache/geode/internal/size/ObjectTraverser.java