private static int getAlignment(List<? extends OffsettedItem> items) {
    try {
      // Since they all must have the same alignment, any one will do.
      return Math.max(HEADER_SIZE, items.get(0).getAlignment());
    } catch (IndexOutOfBoundsException ex) {
      // Translate the exception.
      throw new IllegalArgumentException("items.size() == 0");
    } catch (NullPointerException ex) {
      // Translate the exception.
      throw new NullPointerException("items == null");
    }
  }
Helper for {@link #UniformListItem}, which returns the alignment requirement implied by the
given list. See the header comment for more details.

@param items {@code non-null;} list of items being represented
@return {@code >= 4;} the alignment requirement
android/android_framework/dex-maker/src/main/java/com/android/dx/dex/file/UniformListItem.java