void () { @Language("JAVA") String classText = """ /** @noinspection ALL*/ public class SomeClass { static class X { Object get() { return null; } } static class Y extends X { String get() { throw new IllegalArgumentException(); } } public static void main(String[] args) { X x = new Y(); x.get(); } } """; List<Trinity<String, Integer, Integer>> traceAndPositions = Arrays.asList( Trinity.create("Exception in thread \"main\" java.lang.IllegalArgumentException\n", null, null), Trinity.create("\tat SomeClass$Y.get(SomeClass.java:11)\n", null, null), Trinity.create("\tat SomeClass$Y.get(SomeClass.java:9)\n", 9, 0), Trinity.create("\tat SomeClass.main(SomeClass.java:17)\n", null, null)); checkFindMethodHandler(classText, traceAndPositions); }