class Main { private static final boolean TRUE = 1 == 1; void testParenthesizedPattern(String s) { if (s instanceof (String s1)) { System.out.println(s1); } } void testDeepParenthesizedPattern(String s) { if (s instanceof ( ((( (( String s1)) )) ) )) { System.out.println(s1); } } void testGuardedPatternWithCompileTimeCondition1(String s) { if (s instanceof (String s1 && true)) { System.out.println(s1); } } void testGuardedPatternWithAlwaysTrueCondition2(String s) { if (s instanceof (String s1 && TRUE)) { System.out.println(s1); } } void testGuardedPatternWithAlwaysTrueCondition3(String s) { if (s instanceof ((String s1 && true) && true)) { System.out.println(s1); } } }