Note 12.22.1. Null-Safe Equality Check.
A common way to write null-safe equality is using
java.util.Objects.equals(a, b). This static method correctly handles cases where a or b (or both) might be null. Our loop logic implements this behavior directly.
