docs: protected boolean containsChangesWithExternalDependencies( AtomicReference<Set<NodeKey>> affectedNodeKeys )
          throws RepositoryException {
          Set<NodeKey> allChanges = sessionCache().getChangedNodeKeys();
          Set<NodeKey> changesAtOrBelowThis = sessionCache().getChangedNodeKeysAtOrBelow(this.node());
          removeReferrerChanges(allChanges, changesAtOrBelowThis);
          if (affectedNodeKeys != null) affectedNodeKeys.set(changesAtOrBelowThis);
  
          return !changesAtOrBelowThis.containsAll(allChanges);
      }