void (Element element) { matchOptions.readExternal(element); Attribute attribute = element.getAttribute(REFORMAT_ATTR_NAME); try { myToReformatAccordingToStyle = attribute == null || attribute.getBooleanValue(); } catch(DataConversionException ignored) {} attribute = element.getAttribute(SHORTEN_FQN_ATTR_NAME); try { toShortenFQN = attribute == null || attribute.getBooleanValue(); } catch(DataConversionException ignored) {} attribute = element.getAttribute(USE_STATIC_IMPORT_ATTR_NAME); if (attribute != null) { // old saved configurations without this attribute present try { myToUseStaticImport = attribute.getBooleanValue(); } catch (DataConversionException ignore) {} } replacement = element.getAttributeValue(REPLACEMENT_ATTR_NAME); for (final Element child : element.getChildren(VARIABLE_DEFINITION_TAG_NAME)) { final ReplacementVariableDefinition variableDefinition = new ReplacementVariableDefinition(); variableDefinition.readExternal(child); addVariableDefinition(variableDefinition); } }