docs: @NotNull
      public static JpegSegmentData readSegments(@NotNull File file, @Nullable Iterable<JpegSegmentType> segmentTypes) throws JpegProcessingException, IOException
      {
          FileInputStream stream = null;
          try {
              stream = new FileInputStream(file);
              return readSegments(new StreamReader(stream), segmentTypes);
          } finally {
              if (stream != null) {
                  stream.close();
              }
          }
      }