@Override
  public @NotNull String getUnresolvedMessagePattern() {
    final XmlFile xmlFile = getFile();
    return xmlFile == null ?
           XmlBundle.message("xml.inspections.cannot.resolve.anchor", myAnchor) :
           XmlBundle.message("xml.inspections.cannot.resolve.anchor.in.file", myAnchor, xmlFile.getName());
  }
@Override
  public @NotNull String getUnresolvedMessagePattern()