private static String unitValueToString(@Nullable UnitValue unitValue) {
    if (unitValue == null) return "null";
    if (unitValue.getOperation() == UnitValue.STATIC) {
      StringBuilder result = new StringBuilder();
      result.append(unitValue.getValue());
      if (unitValue.getUnitString() != null) {
        result.append(unitValue.getUnitString());
      }
      else {
        int unit = unitValue.getUnit();
        if (unit >= 0) {
          String unitName = MIG_LAYOUT_UNIT_MAP.get().get(unit);
          if (unitName == null) {
            return unitValue.toString();
          }
          result.append(unitName);
        }
      }
      if (unitValue.isHorizontal()) {
        result.append("H");
      }
      else {
        result.append("V");
      }
      return result.toString();
    }
    return unitValue.toString();
  }
private static String unitValueToString(@Nullable UnitValue unitValue)