private static @NotNull ModificationTracker externalResourceModificationTracker(@NotNull XmlTag tag) {
    Project project = tag.getProject();
    ExternalResourceManagerEx manager = ExternalResourceManagerEx.getInstanceEx();
    return () -> manager.getModificationCount(project);
  }
private static @NotNull ModificationTracker externalResourceModificationTracker(@NotNull XmlTag tag)