void (@NotNull MoreObjects.ToStringHelper h, @NotNull GridBagConstraints constraints, @NotNull String field) { Object value = ReflectionUtil.getField(GridBagConstraints.class, constraints, null, field); Object defaultValue = ReflectionUtil.getField(GridBagConstraints.class, new GridBagConstraints(), null, field); if (!Comparing.equal(value, defaultValue)) h.add(field, value); }