private static JComboBox<Object> createPageSizesCombo() {
    JComboBox<Object> pageSizesCombo = new ComboBox<>();
    for (String name : PageSizes.getNames()) {
      pageSizesCombo.addItem(PageSizes.getItem(name));
    }
    return pageSizesCombo;
  }
private static JComboBox<Object> createPageSizesCombo()