private void registerOverheadMonitor(@NotNull RunnerLayoutUi ui) {
        if (!Registry.is("debugger.enable.overhead.monitor")) return;

        DebugProcessImpl process = myJavaSession.getProcess();
        OverheadView monitor = new OverheadView(process);
        Content overheadContent = ui.createContent("OverheadMonitor", monitor, JavaDebuggerBundle.message("overhead.toolwindow.title"), null, monitor.getDefaultFocusedComponent());

        monitor.setBouncer(() -> ui.setBouncing(overheadContent, true));

        overheadContent.setCloseable(false);
        overheadContent.setShouldDisposeContent(true);

        ui.addContent(overheadContent, 0, PlaceInGrid.right, true);
      }
private void registerOverheadMonitor(@NotNull RunnerLayoutUi ui)