code: private static Alignment usedAlignment(Alignment cellAlignment, FormSpec formSpec) {
          if (cellAlignment != CellConstraints.DEFAULT) {
              // Cell alignments other than DEFAULT override col/row alignments
              return cellAlignment;
          }
          FormSpec.DefaultAlignment defaultAlignment = formSpec.getDefaultAlignment();
          if (defaultAlignment == FormSpec.FILL_ALIGN) {
              return FILL;
          }
          if (defaultAlignment == ColumnSpec.LEFT) {
              return LEFT;
          } else if (defaultAlignment == FormSpec.CENTER_ALIGN) {
              return CENTER;
          } else if (defaultAlignment == ColumnSpec.RIGHT) {
              return RIGHT;
          } else if (defaultAlignment == RowSpec.TOP) {
              return TOP;
          } else {
              return BOTTOM;
          }
      }
docs: Returns the alignment used for a given form constraints object. The cell alignment overrides
  the column or row default, unless it is {@code DEFAULT}. In the latter case, we use the
  column or row alignment.
  
  @param cellAlignment this cell constraint's alignment
  @param formSpec the associated column or row specification
  @return the alignment used