void () { @Language("JAVA") String classText = """ //special line //special line //special line //special line //special line //special line /** @noinspection ALL*/ public class SomeClass { private static final int x = 0; private static final int y = staticT(x); private static int staticT(int x) { return 1 / x; } public static void main(String[] args) { new SomeClass(); } } """; List<Trinity<String, Integer, Integer>> traceAndPositions = Arrays.asList( Trinity.create("Caused by: java.lang.ArithmeticException: / by zero\n", null, null), Trinity.create("\tat SomeClass.staticT(SomeClass.java:6)\n", 6 + 7, 20), Trinity.create("\tat SomeClass.<clinit>(SomeClass.java:3)\n", 3 + 7, 34)); checkFindMethodHandler(classText, traceAndPositions); }