void (ActionEvent e) { final DebuggerContextImpl context = DebuggerManagerEx.getInstanceEx(project).getContext(); final DebuggerSession session = context.getDebuggerSession(); final PsiClass item = ((ComboBoxClassElement)switcher.getSelectedItem()).myClass; final VirtualFile vFile = item.getContainingFile().getVirtualFile(); if (session != null && vFile != null) { session.getProcess().getManagerThread().schedule(new DebuggerCommandImpl() { @Override protected void action() { if (!StringUtil.isEmpty(locationDeclName)) { DebuggerUtilsEx.setAlternativeSourceUrl(locationDeclName, vFile.getUrl(), project); } DebuggerUIUtil.invokeLater(() -> { FileEditorManager.getInstance(project).closeFile(file); session.refresh(true); }); } }); } else { FileEditorManager.getInstance(project).closeFile(file); item.navigate(true); } }