List<StackFrameItem> (AnActionEvent e) { List<JavaValue> values = ViewAsGroup.getSelectedValues(e); if (values.size() == 1) { ValueDescriptorImpl descriptor = values.get(0).getDescriptor(); if (descriptor.isValueReady()) { Value value = descriptor.getValue(); if (value instanceof ObjectReference) { DebuggerContextImpl debuggerContext = DebuggerAction.getDebuggerContext(e.getDataContext()); return StackCapturingLineBreakpoint.getRelatedStack((ObjectReference)value, debuggerContext.getDebugProcess()); } } } return null; }