@Override
    public Result<Map<String, XmlTag>> compute() {
      final Map<String, XmlTag> resultMap = new HashMap<>();
      XmlDocument document = HtmlUtil.getRealXmlDocument(myFile.getDocument());
      final XmlTag rootTag = document != null ? document.getRootTag() : null;

      if (rootTag != null) {
        processXmlElements(
          rootTag, new PsiElementProcessor<>() {
            @Override
            public boolean execute(final @NotNull XmlTag element) {
              final String anchorValue = getAnchorValue(element);

              if (anchorValue != null) {
                resultMap.put(anchorValue, element);
              }
              return true;
            }
          }
        );
      }
      return new Result<>(resultMap, myFile);
    }
@Override
    public Result<Map<String, XmlTag>> compute()