public boolean isDocumentAffectedByTransactions(@NotNull Document document) {
    return myTransactionsMap.containsKey(document);
  }
public boolean isDocumentAffectedByTransactions(@NotNull Document document)