private Optional<Integer> maybeLeaderEpoch(int leaderEpoch) {
        return leaderEpoch == RecordBatch.NO_PARTITION_LEADER_EPOCH ?
                Optional.empty() : Optional.of(leaderEpoch);
    }
Return the largest timestamp of the messages after a given position in this file message set.
@param startingPosition The starting position.
@return The largest timestamp of the messages after the given position.
clients/src/main/java/org/apache/kafka/common/record/FileRecords.java