public static int getAbsoluteOffsetOr0(OffsettedItem item) {
    if (item == null) {
      return 0;
    }

    return item.getAbsoluteOffset();
  }
Gets the absolute offset of the given item, returning {@code 0} if handed {@code null}.

@param item {@code null-ok;} the item in question
@return {@code >= 0;} the item's absolute offset, or {@code 0} if {@code item == null}
android/android_framework/dex-maker/src/main/java/com/android/dx/dex/file/OffsettedItem.java