void () { if (!isVisible() || ApplicationManager.getApplication().isUnitTestMode()) { return; } DebuggerInvocationUtil.swingInvokeLater(myProject, () -> { if (!isValid()) { return; } DebuggerContextImpl context = DebuggerManagerEx.getInstanceEx(myProject).getContext(); DebugProcessImpl debugProcess = context.getDebugProcess(); if (debugProcess == null || !debugProcess.isAttached()) { updateCaches(null); } else { debugProcess.getManagerThread().invoke(new DebuggerCommandImpl() { @Override protected void action() { if (!myProject.isDisposed()) { updateCaches(debugProcess); } } }); } }); }