IXMLBuilder (@NotNull Map<String, Void> map) { return new NanoXmlBuilder() { @Override public void addAttribute(String key, String nsPrefix, String nsURI, String value, String type) { if (value != null && FxmlConstants.FX_ID.equals(nsPrefix + ":" + key)) { map.put(value, null); } } }; }