static <T, R> ChangeProcessor<T, R> anyChange(R onChangesDetected, R noChanges) {
      return new ChangeProcessor<>() {
        private R myResult = noChanges;

        @Override
        public boolean added(Object newEntity) {
          myResult = onChangesDetected;
          return false;
        }

        @Override
        public boolean changed(Object oldEntity, Object newEntity) {
          myResult = onChangesDetected;
          return false;
        }

        @Override
        public boolean removed(Object oldEntity) {
          myResult = onChangesDetected;
          return false;
        }

        @Override
        public R getResult() {
          return myResult;
        }
      };
    }
static <T, R> ChangeProcessor<T, R> anyChange(R onChangesDetected, R noChanges)