ModificationTracker (@NotNull XmlAttribute attribute) { Project project = attribute.getProject(); ExternalResourceManagerEx manager = ExternalResourceManagerEx.getInstanceEx(); return () -> manager.getModificationCount(project); }