MethodBreakpoint (Document document, int lineIndex) { ThreadingAssertions.assertEventDispatchThread(); XLineBreakpoint xBreakpoint = addXLineBreakpoint(JavaMethodBreakpointType.class, document, lineIndex); if (getJavaBreakpoint(xBreakpoint) instanceof MethodBreakpoint methodBreakpoint) { addBreakpoint(methodBreakpoint); return methodBreakpoint; } return null; }