StackTraceElement[] current = getCurrentTrace();
    public void addScalaLeavePoint() {        StackTraceElement[] current = getCurrentTrace();        // find leave point        int length = Math.min(trace.length, current.length);        int leave = 0;        while (leave < length && trace[leave].equals(current[leave])) leave++;        // skip calls through interpreter & reflection        int start = leave;        while (traceAtStartsWith(start, "scalai.")) start++;        while (traceAtStartsWith(start, "java.lang.reflect.")) start++;        while (traceAtStartsWith(start, "sun.reflect.")) start++;        // complete stack with java trace        for (int i = stop - 1; start <= i; i--) stack.add(trace[i]);        // save new trace end        stop = leave;    }