private static String dimConstraintToString(DimConstraint constraint) {
    StringBuilder stringBuilder = new StringBuilder();
    DimConstraint newConstraint = new DimConstraint();
    if (!Comparing.equal(constraint.getGrow(), newConstraint.getGrow())) {
      stringBuilder.append(" grow=").append(constraint.getGrow());
    }
    if (constraint.getGrowPriority() != newConstraint.getGrowPriority()) {
      stringBuilder.append(" growPrio=").append(constraint.getGrowPriority());
    }
    if (!Comparing.equal(constraint.getShrink(), newConstraint.getShrink())) {
      stringBuilder.append(" shrink=").append(constraint.getShrink());
    }
    if (constraint.getShrinkPriority() != newConstraint.getShrinkPriority()) {
      stringBuilder.append(" shrinkPrio=").append(constraint.getShrinkPriority());
    }
    if (constraint.isFill() != newConstraint.isFill()) {
      stringBuilder.append(" fill=").append(constraint.isFill());
    }
    if (constraint.isNoGrid() != newConstraint.isNoGrid()) {
      stringBuilder.append(" noGrid=").append(constraint.isNoGrid());
    }
    if (!Objects.equals(constraint.getSizeGroup(), newConstraint.getSizeGroup())) {
      stringBuilder.append(" sizeGroup=").append(constraint.getSizeGroup());
    }
    if (!Objects.equals(constraint.getEndGroup(), newConstraint.getEndGroup())) {
      stringBuilder.append(" endGroup=").append(constraint.getEndGroup());
    }
    return stringBuilder.toString();
  }
private static String dimConstraintToString(DimConstraint constraint)