@Override
 public boolean hasLastingDefinition(PDOMBinding binding) throws CoreException {
   if (fileBeingUpdated == null) {
     return binding.hasDefinition();
   }
   // Definitions in fileBeingUpdated will soon go away, so look for a definition elsewhere.
   for (PDOMName name = binding.getFirstDefinition();
       name != null;
       name = name.getNextInBinding()) {
     if (!fileBeingUpdated.getPDOM().equals(name.getPDOM())
         || fileBeingUpdated.getRecord() != name.getFileRecord()) {
       return true;
     }
   }
   return false;
 }
 @Override
 protected boolean isCommitted(PDOMMacroReferenceName name) throws CoreException {
   return uncommittedFile == null
       || !uncommittedFile.getPDOM().equals(name.getPDOM())
       || uncommittedFile.getRecord() != name.getFileRecord();
 }