@Override
  protected void checkDomElement(@NotNull DomElement element, @NotNull DomElementAnnotationHolder holder, @NotNull DomHighlightingHelper helper) {
    if (element instanceof AntDomProperty property) {
      final GenericAttributeValue<PsiFileSystemItem> fileValue = property.getFile();
      final String fileName = fileValue.getStringValue();
      if (fileName != null) {
        final PropertiesFile propertiesFile = property.getPropertiesFile();
        if (propertiesFile == null) {
          final PsiFileSystemItem file = fileValue.getValue();
          if (file instanceof XmlFile) {
            holder.createProblem(fileValue, AntBundle.message("file.type.xml.not.supported", fileName));
          }
          else if (file instanceof PsiFile) {
            holder.createProblem(fileValue, AntBundle.message("file.type.not.supported", fileName));
          }
          else {
            holder.createProblem(fileValue, AntBundle.message("file.doesnt.exist", fileName));
          }
        }
      }
    }
  }
@Override
  protected void checkDomElement(@NotNull DomElement element, @NotNull DomElementAnnotationHolder holder, @NotNull DomHighlightingHelper helper)