private static @Nullable IndexedRelevantResource<String, XsdNamespaceBuilder> getResourceByLocalFile(@NotNull String namespace,
                                                                                                       @NotNull Project project,
                                                                                                       @Nullable Module module) {
    String protocol = VirtualFileManager.extractProtocol(namespace);
    VirtualFileManager virtualFileManager = VirtualFileManager.getInstance();
    if (virtualFileManager.getFileSystem(protocol) instanceof LocalFileSystem) {
      VirtualFile file = virtualFileManager.findFileByUrl(namespace);
      if (file != null) {
        XsdNamespaceBuilder xsdNamespaceBuilder = getFileNamespace(file, project);
        if (xsdNamespaceBuilder != null) {
          ResourceRelevance relevance = ResourceRelevance.getRelevance(file, module, ProjectFileIndex.getInstance(project), null);
          return new IndexedRelevantResource<>(file, file.getUrl(), xsdNamespaceBuilder, relevance);
        }
      }
    }
    return null;
  }
private static @Nullable IndexedRelevantResource<String, XsdNamespaceBuilder> getResourceByLocalFile(@NotNull String namespace,
                                                                                                       @NotNull Project project,
                                                                                                       @Nullable Module module)