void (@NotNull PsiElement element) { if (element instanceof XmlElementDecl) { final String s = ((XmlElementDecl)element).getName(); if (s != null) { final String[] parts = s.split(":"); if (parts.length > 1) { map.put(XMLNS + ":" + parts[0], null); } } } else if (element instanceof XmlAttributeDecl) { final String s = ((XmlAttributeDecl)element).getName(); if (s != null) { final String[] parts = s.split(":"); if (parts.length > 1) { map.put(XMLNS + ":" + parts[0], null); } } } super.visitElement(element); }