void (FormBuilder builder, Map<String, @NlsSafe String> fields) { builder = builder.setFormLeftIndent(IdeBorderFactory.TITLED_BORDER_INDENT); for (CommonField field : CommonField.values()) { String value = fields.get(field.getShortName()); if (value == null) { continue; } String label = new HtmlBuilder() .append(field.getShortName()) .append(" (") .append(HtmlChunk.text(field.getLongName()).bold()) .append(")") .wrapWith("html") .toString(); builder = builder.addLabeledComponent(label, new JBLabel(value)); } builder.setFormLeftIndent(0); }