void (final @Nullable Element element, final @Nullable PathMappingSettings mappings) { if (element == null || mappings == null || mappings.isEmpty()) { return; } element.addContent(XmlSerializer.serialize(mappings)); }