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