docs: private void setBandFinalHeight(JRDesignBand band, int currHeigth, boolean fitToContent) {
          if (band != null) {
              int finalHeight = LayoutUtils.findVerticalOffset(band);
              //noinspection StatementWithEmptyBody
              if (finalHeight < currHeigth && !fitToContent) {
                  //nothing
              } else {
                  band.setHeight(finalHeight);
              }
          }
  
      }