private static @NotNull String toString(@Nullable GridBagConstraints constraints) {
    if (constraints == null) return "null";

    MoreObjects.ToStringHelper h = MoreObjects.toStringHelper("");
    appendFieldValue(h, constraints, "gridx");
    appendFieldValue(h, constraints, "gridy");
    appendFieldValue(h, constraints, "gridwidth");
    appendFieldValue(h, constraints, "gridheight");
    appendFieldValue(h, constraints, "weightx");
    appendFieldValue(h, constraints, "weighty");
    appendFieldValue(h, constraints, "anchor");
    appendFieldValue(h, constraints, "fill");
    appendFieldValue(h, constraints, "insets");
    appendFieldValue(h, constraints, "ipadx");
    appendFieldValue(h, constraints, "ipady");
    return h.toString();
  }
private static @NotNull String toString(@Nullable GridBagConstraints constraints)