TextRange (XLineBreakpoint<JavaLineBreakpointProperties> breakpoint) { PsiElement highlightedElement = null; Integer lambdaOrdinal = getLambdaOrdinal(breakpoint); if (lambdaOrdinal != null) { Breakpoint<?> javaBreakpoint = BreakpointManager.getJavaBreakpoint(breakpoint); if (javaBreakpoint instanceof LineBreakpoint<?> lineBreakpoint) { assert breakpoint.getProperties() != null; if (breakpoint.getProperties().isConditionalReturn()) { highlightedElement = findSingleConditionalReturn(lineBreakpoint.getSourcePosition()); } else { highlightedElement = getContainingMethod(lineBreakpoint); } } } if (highlightedElement != null) { PsiFile file = highlightedElement.getContainingFile(); int line = breakpoint.getLine(); return DebuggerUtilsEx.getHighlightingRangeInsideLine(highlightedElement.getTextRange(), file, line); } return null; }