void () { ArrayList<Bin> members = getMembers(); if (members.stream().allMatch(bin -> bin instanceof RawResource)) { // Somehow RawResources could go out of order on disk, let's sort them, so we won't need to seek them in input stream members.sort((o1, o2) -> { assert o1 instanceof RawResource; assert o2 instanceof RawResource; return Long.compare(((RawResource)o1).getRawOffset().getValue(), ((RawResource)o2).getRawOffset().getValue()); }); } }