public static LogAppendInfo unknownLogAppendInfoWithLogStartOffset(long logStartOffset) {
        return new LogAppendInfo(-1, -1, OptionalInt.empty(), RecordBatch.NO_TIMESTAMP, -1L, RecordBatch.NO_TIMESTAMP, logStartOffset,
                RecordValidationStats.EMPTY, CompressionType.NONE, -1, -1L);
    }
Returns a new instance containing all the fields from this instance and updated with the given LeaderHwChange value.

@param newLeaderHwChange new value for LeaderHwChange
@return a new instance with the given LeaderHwChange
storage/src/main/java/org/apache/kafka/storage/internals/log/LogAppendInfo.java