private void annotate(int length, String message) {
    if (prefix != null) {
      message = prefix + message;
    }

    if (annotateTo != null) {
      annotateTo.annotate(shouldConsume ? length : 0, message);
    }

    if (debugPrint != null) {
      debugPrint.println(message);
    }
  }
Annotates or writes a message to the {@code debugPrint} writer if applicable.

@param length the number of bytes associated with this message
@param message the message itself
android/android_framework/dex-maker/src/main/java/com/android/dx/dex/file/DebugInfoEncoder.java