visit
The following rule applies to an instanceof expression with a pattern operand, a instanceof p: - A pattern variable is introduced by a instanceof p when true iff the pattern p contains a declaration of the pattern variable. https://docs.oracle.com/javase/specs/jls/se22/html/jls-6.html#jls-6.3.1.5
The following rules apply to a parenthesized expression (a): - A pattern variable is introduced by (a) when true iff it is introduced by a when true. - A pattern variable is introduced by (a) when false iff it is introduced by a when false. https://docs.oracle.com/javase/specs/jls/se22/html/jls-6.html#jls-6.3.1.7