private void flushHiddenFrames() {
      if (!XFramesView.shouldFoldHiddenFrames()) return;

      if (!myHiddenFrames.isEmpty()) {
        var placeholder = new XFramesView.HiddenStackFramesItem(myHiddenFrames);
        myContainer.addStackFrames(Collections.singletonList(placeholder), false);
        myHiddenFrames.clear();
      }
    }
private void flushHiddenFrames()