Buggy code:
public final class ConstantPoolElement__BehaviorDescriptor extends BaseBHDescriptor { private static final SAbstractConcept CONCEPT = MetaAdapterFactory . getConcept ( 1410448677161224235L , - 6185665620903724062L , 1627386486402044798L , "me.tomassetti.bytecode.structure.ConstantPoolElement" ) ; private static final BehaviorRegistry REGISTRY = ConceptRegistry . getInstance ( ) . getBehaviorRegistry ( ) ; public static final SMethod < ConstantPoolElementType > tag_id1qlCQcqgXe2 = new SMethodBuilder < ConstantPoolElementType > ( new SJavaCompoundTypeImpl ( ConstantPoolElementType . class ) ) . name ( "tag" ) . modifiers ( SModifiersImpl . create ( 12 , PUBLIC ) ) . concept ( ConstantPoolElement__BehaviorDescriptor . CONCEPT ) . id ( "1qlCQcqgXe2" ) . registry ( ConstantPoolElement__BehaviorDescriptor . REGISTRY ) . build ( ) ; public static final SMethod < Boolean > isDoubleElement_id6vIFDs2N3yE = new SMethodBuilder < Boolean > ( new SJavaCompoundTypeImpl ( Boolean . TYPE ) ) . name ( "isDoubleElement" ) . modifiers ( SModifiersImpl . create ( 0 , PUBLIC ) ) . concept ( ConstantPoolElement__BehaviorDescriptor . CONCEPT ) . id ( "6vIFDs2N3yE" ) . registry ( ConstantPoolElement__BehaviorDescriptor . REGISTRY ) . build ( ) ; public static final SMethod < Long > index_idOFkQGRQU2Z = new SMethodBuilder < Long > ( new SJavaCompoundTypeImpl ( Long . TYPE ) ) . name ( "index" ) . modifiers ( SModifiersImpl . create ( 0 , PUBLIC ) ) . concept ( ConstantPoolElement__BehaviorDescriptor . CONCEPT ) . id ( "OFkQGRQU2Z" ) . registry ( ConstantPoolElement__BehaviorDescriptor . REGISTRY ) . build ( ) ; public static final SMethod < Void > serialize_id6cFMhcmFUNm = new SMethodBuilder < Void > ( new SJavaCompoundTypeImpl ( Void . class ) ) . name ( "serialize" ) . modifiers ( SModifiersImpl . create ( 0 , PUBLIC ) ) . concept ( ConstantPoolElement__BehaviorDescriptor . CONCEPT ) . id ( "6cFMhcmFUNm" ) . registry ( ConstantPoolElement__BehaviorDescriptor . REGISTRY ) . build ( SMethodBuilder . createJavaParameter ( MyDataOStream . class , "" ) ) ; public static final SMethod < Void > serializeInfo_id6cFMhcmFVC0 = new SMethodBuilder < Void > ( new SJavaCompoundTypeImpl ( Void . class ) ) . name ( "serializeInfo" ) . modifiers ( SModifiersImpl . create ( 12 , PUBLIC ) ) . concept ( ConstantPoolElement__BehaviorDescriptor . CONCEPT ) . id ( "6cFMhcmFVC0" ) . registry ( ConstantPoolElement__BehaviorDescriptor . REGISTRY ) . build ( SMethodBuilder . createJavaParameter ( MyDataOStream . class , "" ) ) ; private static final List < SMethod < ? > > BH_METHODS = Arrays . < SMethod < ? > > asList ( ConstantPoolElement__BehaviorDescriptor . tag_id1qlCQcqgXe2 , ConstantPoolElement__BehaviorDescriptor . isDoubleElement_id6vIFDs2N3yE , ConstantPoolElement__BehaviorDescriptor . index_idOFkQGRQU2Z , ConstantPoolElement__BehaviorDescriptor . serialize_id6cFMhcmFUNm , ConstantPoolElement__BehaviorDescriptor . serializeInfo_id6cFMhcmFVC0 ) ; private static void ___init___ ( @ NotNull SNode __thisNode__ ) { } static boolean isDoubleElement_id6vIFDs2N3yE ( @ NotNull SNode __thisNode__ ) { } static long index_idOFkQGRQU2Z ( @ NotNull SNode __thisNode__ ) { } static void serialize_id6cFMhcmFUNm ( @ NotNull SNode __thisNode__ , MyDataOStream mds ) { <START_BUG> mds . write2Bytes ( ConstantPoolElement__BehaviorDescriptor . tag_id1qlCQcqgXe2 . invoke ( __thisNode__ ) . getTagValue ( ) ) ; <END_BUG> ConstantPoolElement__BehaviorDescriptor . serializeInfo_id6cFMhcmFVC0 . invoke ( __thisNode__ , mds ) ; } ConstantPoolElement__BehaviorDescriptor ( ) { } @ Override protected void initNode ( @ NotNull SNode node , @ NotNull SConstructor constructor , @ Nullable Object [ ] parameters ) { } @ Override protected < T > T invokeSpecial0 ( @ NotNull SNode node , @ NotNull SMethod < T > method , @ Nullable Object [ ] parameters ) { } @ Override protected < T > T invokeSpecial0 ( @ NotNull SAbstractConcept concept , @ NotNull SMethod < T > method , @ Nullable Object [ ] parameters ) { } @ NotNull @ Override public List < SMethod < ? > > getDeclaredMethods ( ) { } @ NotNull @ Override public SAbstractConcept getConcept ( ) { } }

Fix:
mds . write1Byte ( ConstantPoolElement__BehaviorDescriptor . tag_id1qlCQcqgXe2 . invoke ( __thisNode__ ) . getTagValue ( ) ) ;