Search for : assertThat\((.+) instanceof (\w+)\)\.isTrue\(\) Replace with : assertThat($1).isInstanceOf($2.class)