@Override
  protected WebReference @NotNull [] collectWebReferences(@NotNull PsiFile file) {
    if (!ourEnableInTestMode && ApplicationManager.getApplication().isUnitTestMode()) {
      return EMPTY_ARRAY;
    }

    final HtmlNonExistentInternetResourceInspection inspection = getInspection(file);
    if (inspection == null) {
      return EMPTY_ARRAY;
    }

    final List<WebReference> result = new ArrayList<>();

    file.accept(new PsiRecursiveElementWalkingVisitor() {
      @Override
      public void visitElement(@NotNull PsiElement element) {
        super.visitElement(element);

        if (!(element instanceof XmlAttributeValue)) {
          return;
        }

        final WebReference webReference = lookForWebReference(element);
        if (webReference != null) {
          result.add(webReference);
        }
      }
    });
    return result.toArray(new WebReference[0]);
  }
@Override
  protected WebReference @NotNull [] collectWebReferences(@NotNull PsiFile file)