code: public static boolean contains(Saveable s) {
          for(BulkChange b=current(); b!=null; b=b.parent)
              if(b.saveable==s || b.saveable==ALL)
                  return true;
          return false;
      }
docs: Checks if the given {@link Saveable} is currently in the bulk change.
  
  <p>
  The expected usage is from the {@link Saveable#save()} implementation to check
  if the actual persistence should happen now or not.