[IfChainToSwitch] refactor InstanceOfIr to use Optional instead of @Nullable, like in the rest of the rest of this class
#5480
+18
−12