code: private boolean takeIntoAccount(Component component, CellConstraints cc) {
          return component.isVisible()
                  || cc.honorsVisibility == null && !getHonorsVisibility()
                  || Boolean.FALSE.equals(cc.honorsVisibility);
      }
docs: Checks and answers whether the given component with the specified CellConstraints shall be
  taken into account for the layout.
  
  @param component the component to test
  @param cc the component's associated CellConstraints
  @return {@code true} if a) {@code component} is visible, or b) {@code component} has no
  individual setting and the container-wide settings ignores the visibility, or c) {@code cc}
  indicates that this individual component ignores the visibility.