code: public void setOptions(Options newOptions)
    {
      if (newOptions != options)
      {
        NotificationChain msgs = null;
        if (options != null)
          msgs = ((InternalEObject)options).eInverseRemove(this, EOPPOSITE_FEATURE_BASE - SimpleAntlrPackage.ANTLR_GRAMMAR__OPTIONS, null, msgs);
        if (newOptions != null)
          msgs = ((InternalEObject)newOptions).eInverseAdd(this, EOPPOSITE_FEATURE_BASE - SimpleAntlrPackage.ANTLR_GRAMMAR__OPTIONS, null, msgs);
        msgs = basicSetOptions(newOptions, msgs);
        if (msgs != null) msgs.dispatch();
      }
      else if (eNotificationRequired())
        eNotify(new ENotificationImpl(this, Notification.SET, SimpleAntlrPackage.ANTLR_GRAMMAR__OPTIONS, newOptions, newOptions));
    }
docs: <!-- begin-user-doc -->
  <!-- end-user-doc -->
  @generated