public boolean hasStubElementsWithNamespaceKey(@NotNull DomFileElement<?> domFileElement,
                                                 @NotNull String namespaceKey) {
    final VirtualFile file = domFileElement.getFile().getVirtualFile();
    if (!(file instanceof VirtualFileWithId)) return false;

    CommonProcessors.FindFirstProcessor<PsiFile> processor = new CommonProcessors.FindFirstProcessor<>();
    StubIndex.getInstance().processElements(
      KEY,
      namespaceKey,
      domFileElement.getFile().getProject(),
      GlobalSearchScope.fileScope(domFileElement.getFile()),
      PsiFile.class, 
      processor
    );
    return processor.isFound();
  }
public boolean hasStubElementsWithNamespaceKey(@NotNull DomFileElement<?> domFileElement,
                                                 @NotNull String namespaceKey)