Element (InspectionToolWrapper<?, ?> toolWrapper) { Element element = new Element("options"); try { toolWrapper.getTool().writeSettings(element); } catch (WriteExternalException e) { LOG.error(e); } return element; }