void () { @Language("JAVA") String classText = """ /** @noinspection ALL*/ class Test { public static void main(String[] args) { Object x = null; System.out.println(( x . toString().trim() + "xyz") . toString()); } }"""; List<Trinity<String, Integer, Integer>> traceAndPositions = Arrays.asList( Trinity.create("Exception in thread \"main\" java.lang.NullPointerException: Cannot invoke \"Object.toString()\" because \"x\" is null\n", null, null), Trinity.create("\tat Test.main(Test.java:9)\n", 9, 25)); checkColumnFinder(classText, traceAndPositions); }