void () { @Language("JAVA") String classText = """ /** @noinspection ALL*/ public class Test { public static void main(String[] args) { System.out.println( getIntegerData() + getLongData()); } static Integer getIntegerData() { return Math.random() > 0.5 ? 1 : null; } static Long getLongData() { return Math.random() > 0.5 ? 1L : null; } }"""; List<Trinity<String, Integer, Integer>> traceAndPositions = Arrays.asList( Trinity.create("java.lang.NullPointerException: Cannot invoke \"java.lang.Integer.intValue()\" because the return value of \"MainTest.getIntegerData()\" is null\n", null, null), Trinity.create("\tat Test.main(Test.java:5)\n", 5, 17)); checkColumnFinder(classText, traceAndPositions); }