void (@NotNull Element element, @NotNull String fieldName, Color color) { if (color != null) { String string = Integer.toString(color.getRGB() & 0xFFFFFF, 16); JDOMExternalizerUtil.writeField(element, fieldName, string); } }