PsiElement (@NotNull LineBreakpoint<?> breakpoint) { SourcePosition position = breakpoint.getSourcePosition(); if (position == null) return null; JavaBreakpointProperties properties = breakpoint.getProperties(); if (properties instanceof JavaLineBreakpointProperties && !(breakpoint instanceof RunToCursorBreakpoint)) { Integer ordinal = ((JavaLineBreakpointProperties)properties).getLambdaOrdinal(); if (ordinal != null && ordinal != -1) { List<PsiLambdaExpression> lambdas = DebuggerUtilsEx.collectLambdas(position, true); if (ordinal < lambdas.size()) { return lambdas.get(ordinal); } } } return DebuggerUtilsEx.getContainingMethod(position); }