private void updateSize() {
    if (myActualSize == null && !myErrorText.isVisible()) {
      Dimension actualSize = getSize();
      myActualSize = actualSize;
      if (LOG.isDebugEnabled()) {
        LOG.debug("Updated the actual size to " + actualSize + " because the error text is invisible");
      }
    }
  }
private void updateSize()