void (@NotNull final Element root) { final String hexEnabled = JDOMExternalizerUtil.readField(root, HEX_VIEW_ENABLED); if (hexEnabled != null) { myHexRenderer.setEnabled(Boolean.parseBoolean(hexEnabled)); } final String alternativeEnabled = JDOMExternalizerUtil.readField(root, ALTERNATIVE_COLLECTION_VIEW_ENABLED); if (alternativeEnabled != null) { setAlternateCollectionViewsEnabled(Boolean.parseBoolean(alternativeEnabled)); } for (final Element elem : root.getChildren(RENDERER_TAG)) { final String id = elem.getAttributeValue(RENDERER_ID); if (id == null) { continue; } try { switch (id) { case ToStringRenderer.UNIQUE_ID -> { myToStringRenderer.readExternal(elem); if (!myToStringRenderer.isEnabled()) { myToStringRenderer.setEnabled(true); myToStringRenderer.setOnDemand(true); } } case ClassRenderer.UNIQUE_ID -> myClassRenderer.readExternal(elem); case PrimitiveRenderer.UNIQUE_ID -> myPrimitiveRenderer.readExternal(elem); } } catch (InvalidDataException e) { // ignore } } final Element custom = root.getChild(CUSTOM_RENDERERS_TAG_NAME); if (custom != null) { myCustomRenderers.readExternal(custom); } myDispatcher.getMulticaster().renderersChanged(); }