PsiVariable (final StackFrameProxy frame, final String name, final Project project, final DebugProcess process) { PsiElement place = ContextUtil.getContextElement(new SimpleStackFrameContext(frame, process)); if (place == null) { return null; } return ReadAction.compute(() -> JavaPsiFacade.getInstance(project).getResolveHelper().resolveReferencedVariable(name, place)); }