* @return the {@code String} representation of the given {@code JOptionPane}.
*/
@RunsInCurrentThread
@Override
protected @Nonnull String doFormat(@Nonnull Component c) {
JOptionPane optionPane = (JOptionPane)c;
String format = "%s[message=%s, messageType=%s, optionType=%s, enabled=%b, visible=%b, showing=%b]";
return String.format(format, optionPane.getClass().getName(), quote(optionPane.getMessage()),
MESSAGE_TYPES.get(optionPane.getMessageType()), OPTION_TYPES.get(optionPane.getOptionType()),
optionPane.isEnabled(), optionPane.isVisible(), optionPane.isShowing());
}