XmlFile (@NotNull @NonNls String namespace, @Nullable Module module, @NotNull PsiFile file) { if (file.getProject().isDefault()) return null; final boolean dumb = DumbService.getInstance(file.getProject()).isDumb(); for (XmlSchemaProvider provider: EP_NAME.getExtensionList()) { if (dumb && !DumbService.isDumbAware(provider)) { continue; } if (file instanceof XmlFile && !provider.isAvailable((XmlFile)file)) { continue; } final XmlFile schema = provider.getSchema(namespace, module, file); if (schema != null) { return schema; } } return null; }