StackTraceElement[] current = getCurrentTrace();  int length = Math.min(trace.length, current.length); int entry = 0; while (entry < length && trace[entry].equals(current[entry])) entry++; assert entry <= stop : "entry = " + entry + " > " + stop + " = stop";
this.trace = getCurrentTrace();  while (traceAtStartsWith(entry, "scalai.")) entry++;
    public void addScalaEntryPoint() {        StackTraceElement[] current = getCurrentTrace();        // find entry point        int length = Math.min(trace.length, current.length);        int entry = 0;        while (entry < length && trace[entry].equals(current[entry])) entry++;        assert entry <= stop : "entry = " + entry + " > " + stop + " = stop";        // skip calls through proxy class        while (entry > 0 && traceAtStartsWith(entry - 1, "$Proxy")) entry--;        // save new trace end        stop = entry;    }