private static OptionalInt toOptionalInt(Integer value) {
        return (value != null) ? OptionalInt.of(value) : OptionalInt.empty();
    }
Get the earliest cached entry if one exists.
storage/src/main/java/org/apache/kafka/storage/internals/epoch/LeaderEpochFileCache.java