void () { final VirtualMachineProxyImpl vm = process.getVirtualMachineProxy(); vm.suspend(); try { final List<ThreadState> threads = buildThreadStates(vm); ApplicationManager.getApplication().invokeLater(() -> { XDebugSession xSession = session.getXDebugSession(); if (xSession != null) { DebuggerUtilsEx.addThreadDump(project, threads, xSession.getUI(), session.getSearchScope()); } }, ModalityState.nonModal()); } finally { vm.resume(); } }