void (String key, DomElement domElement, RegistrationEntry.RegistrationType type) { List<RegistrationEntry> entries = myValueMap.get(key); final XmlElement xmlElement = domElement.getXmlElement(); assert xmlElement != null : domElement; RegistrationEntry entry = new RegistrationEntry(type, xmlElement.getTextOffset()); entries.add(entry); }