@Override
    public Dimension getSize() {
      var actualSize = super.getSize();
      var sizeHack = myMacDirtySizeHack;
      if (sizeHack != null) {
        var hackSize = sizeHack.getSize();
        if (LOG.isDebugEnabled() && !hackSize.equals(actualSize)) {
          LOG.debug("MacOS hack size override: actual size is " + actualSize + ", but we use " + hackSize + " instead");
        }
        return hackSize;
      }
      return actualSize;
    }
@Override
    public Dimension getSize()