XmlElementDescriptor (@NotNull XmlTag tag) { FileKind kind = getFileKind(tag.getContainingFile()); if (kind == null) return null; XmlNSDescriptorImpl desc; synchronized (this) { desc = tryGetOrCreateDescriptor(kind); if (desc == null) return null; } LOG.assertTrue(tag.isValid()); LOG.assertTrue(desc.isValid()); return desc.getElementDescriptor(tag.getName(), desc.getDefaultNamespace()); }