lint/types/prefer-explicit-null-instanceof
In the code-quality set. Unsafe fix: it can change behaviour.
What it does
Make implicit nullable object checks explicit with instanceof
Configuration
[lint.rules]
"types/prefer-explicit-null-instanceof" = "error"
To skip it in some files or lines, add an override or an ignore comment.
Replaces
ExplicitNullableObjectInstance(rector)