public boolean processUnsavedDocuments(Processor<? super Document> processor) {
    for (Document doc : getUnsavedDocuments()) {
      if (!processor.process(doc)) return false;
    }
    return true;
  }
public boolean processUnsavedDocuments(Processor<? super Document> processor)