XSourcePosition (@NotNull XBreakpoint<T> breakpoint) { Breakpoint javaBreakpoint = BreakpointManager.getJavaBreakpoint(breakpoint); if (javaBreakpoint != null) { PsiClass aClass = javaBreakpoint.getPsiClass(); if (aClass != null) { return ReadAction.compute(() -> XDebuggerUtil.getInstance().createPositionByElement(aClass)); } } return null; }