code: public CancelIndicator newCancelIndicator(final ResourceSet rs) {
      CancelIndicator _xifexpression = null;
      if ((rs instanceof XtextResourceSet)) {
        final boolean cancelationAllowed = (this.cancelationAllowed.get()).booleanValue();
        final int current = ((XtextResourceSet)rs).getModificationStamp();
        final CancelIndicator _function = () -> {
          return (cancelationAllowed && (((XtextResourceSet)rs).isOutdated() || (current != ((XtextResourceSet)rs).getModificationStamp())));
        };
        return _function;
      } else {
        _xifexpression = CancelIndicator.NullImpl;
      }
      return _xifexpression;
    }
docs: Created a fresh CancelIndicator