void (SeverityBasedTextAttributes info) { if (info == null) { return; } MyTextAttributesDescription description = new MyTextAttributesDescription(info.getType().toString(), null, new TextAttributes(), info.getType().getAttributesKey()); myOptionsPanel.apply(description, null); Element textAttributes = new Element("temp"); try { description.getTextAttributes().writeExternal(textAttributes); info.getAttributes().readExternal(textAttributes); } catch (Exception e) { LOG.error(e); } }