public void enableAnnotations(int annotationWidth, boolean verbose) {
    if ((annotations != null) || (cursor != 0)) {
      throw new RuntimeException("cannot enable annotations");
    }

    if (annotationWidth < 40) {
      throw new IllegalArgumentException("annotationWidth < 40");
    }

    int hexCols = (((annotationWidth - 7) / 15) + 1) & ~1;
    if (hexCols < 6) {
      hexCols = 6;
    } else if (hexCols > 10) {
      hexCols = 10;
    }

    this.annotations = new ArrayList<Annotation>(1000);
    this.annotationWidth = annotationWidth;
    this.hexCols = hexCols;
    this.verbose = verbose;
  }
Indicates that this instance should keep annotations. This method may be called only once per
instance, and only before any data has been written to the it.

@param annotationWidth {@code >= 40;} the desired maximum annotation width
@param verbose whether or not to indicate verbose annotations
android/android_framework/dex-maker/src/main/java/com/android/dx/util/ByteArrayAnnotatedOutput.java