void (@NotNull ProcessHandler handler) { saveSelectedInfo(); for (TabInfo info : myTabs.getTabs()) { PyDataViewerPanel panel = getPanel(info); PyFrameAccessor accessor = panel.getFrameAccessor(); if (!(accessor instanceof PyDebugProcess)) { continue; } boolean shouldBeShown = Comparing.equal(handler, ((PyDebugProcess)accessor).getProcessHandler()); info.setHidden(!shouldBeShown); } restoreSelectedInfo(handler); if (myTabs.getSelectedInfo() == null) { PyFrameAccessor accessor = getFrameAccessor(handler); if (accessor != null) { addTab(accessor); } } }