private boolean addFrameIfNeeded(XStackFrame frame, boolean last) {
      if (++myAdded > mySkip) {
        addStackFrames(Collections.singletonList(frame), last);
        return true;
      }
      if (last) {
        addStackFrames(Collections.emptyList(), true);
      }
      return false;
    }
private boolean addFrameIfNeeded(XStackFrame frame, boolean last)