code: protected boolean hasVisibleElements(BaseUIComponent component) {
          for (BaseUIComponent child : component.getChildren(BaseUIComponent.class)) {
              ElementUI ele = getAssociatedElement(child);
              
              if (ele != null && ele.isVisible()) {
                  return true;
              }
              
              if (hasVisibleElements(child)) {
                  return true;
              }
          }
          
          return false;
      }
docs: Returns true if any associated UI elements in the component subtree are visible.
  
  @param component Component subtree to examine.
  @return True if any associated UI element in the subtree is visible.