public static Optional<LeaderRecoveryState> optionalOf(byte value) {
        if (value == RECOVERED.value()) {
            return Optional.of(RECOVERED);
        }
        if (value == RECOVERING.value()) {
            return Optional.of(RECOVERING);
        }

        return Optional.empty();
    }
A special value used to represent that the LeaderRecoveryState field of a
PartitionChangeRecord didn't change.
metadata/src/main/java/org/apache/kafka/metadata/LeaderRecoveryState.java