PsiClass (AnActionEvent e, boolean fromUpdate) { ReferenceType selectedClass = fromUpdate ? e.getUpdateSession() .compute(this, "selectedClass", ActionUpdateThread.EDT, () -> DebuggerActionUtil.getSelectedClass(e)) : DebuggerActionUtil.getSelectedClass(e); final Project project = e.getProject(); if (selectedClass == null || project == null) { return null; } final ReferenceType targetClass = getObjectType(selectedClass); if (targetClass != null) { return DebuggerUtils.findClass(targetClass.name(), project, GlobalSearchScope.allScope(project)); } return null; }