// "Simplify 'obj instanceof String str' to true" "true"
class Test {
  void test(Object obj) {
    if (obj instanceof String str1) {
      if (str1.isEmpty()) {

      }
      
      String str = "hello";
    }
  }
}