docs: @SuppressWarnings("Duplicates")
      private static void addVisitorElementMethod(ClassWriter classWriter, String elementName, String apiName) {
          elementName = getCleanName(elementName);
          String classType = getFullClassTypeName(elementName, apiName);
          String classTypeDesc = getFullClassTypeNameDesc(elementName, apiName);
  
          MethodVisitor mVisitor = classWriter.visitMethod(ACC_PUBLIC, VISIT_ELEMENT_NAME + elementName, "(" + classTypeDesc + ")V", "<Z::" + elementTypeDesc + ">(L" + classType + "<TZ;>;)V", null);
          mVisitor.visitCode();
          mVisitor.visitVarInsn(ALOAD, 0);
          mVisitor.visitVarInsn(ALOAD, 1);
          mVisitor.visitMethodInsn(INVOKEVIRTUAL, elementVisitorType, VISIT_ELEMENT_NAME, "(" + elementTypeDesc + ")V", false);
          mVisitor.visitInsn(RETURN);
          mVisitor.visitMaxs(2, 2);
          mVisitor.visitEnd();
      }