anchor.diff:                    CHANGING cg_data = ls_dd04v ).
   
       " DDIC Step: Replace REF TO class/interface with generic reference to avoid cyclic dependency
  -    IF iv_step = zif_abapgit_object=>gc_step_id-ddic AND ls_dd04v-datatype = 'REF'.
  +    IF iv_step = zif_abapgit_object=>gc_step_id-ddic AND ls_dd04v-datatype = 'REF'
  +      AND is_abapclass_or_abapinterface( ls_dd04v-domname ) = abap_true.
  +
         ls_dd04v-rollname = 'OBJECT'.
       ELSEIF iv_step = zif_abapgit_object=>gc_step_id-late AND ls_dd04v-datatype <> 'REF'.
         RETURN. " already active
  
positive.code: 
      CONSTANTS c_longtext_id_dtel TYPE dokil-id VALUE 'DE' ##NO_TEXT.
  
      METHODS serialize_texts
        IMPORTING
          !ii_xml TYPE REF TO zif_abapgit_xml_output
  
negative.code:   ENDMETHOD.
  
  
    METHOD is_abapclass_or_abapinterface.
  
      DATA ls_cifkey TYPE seoclskey.
  
      ls_cifkey-clsname = iv_reference_name.
  
      CALL FUNCTION 'SEO_CLIF_GET'
        EXPORTING
          cifkey       = ls_cifkey
        EXCEPTIONS
          not_existing = 1
          deleted      = 2
          model_only   = 3
          OTHERS       = 4.
  
      IF sy-subrc = 0.
        rv_abapclass_or_abapinterface = abap_true.
      ENDIF.
    ENDMETHOD.
  
  
    METHOD serialize_texts.
  
      DATA: lv_name       TYPE ddobjname,
  