private static ImageSectionHeader getSection(Bin.ArrayOfBins<ImageSectionHeader> sections, String name) {
    for (var header : sections) {
      if (name.equals(header.getSectionName())) {
        return header;
      }
    }
    throw new IllegalStateException("Cannot find section with name " + name);
  }
private static ImageSectionHeader getSection(Bin.ArrayOfBins<ImageSectionHeader> sections, String name)