@Nullable
  public MethodBreakpoint addMethodBreakpoint(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;
  }
@Nullable
  public MethodBreakpoint addMethodBreakpoint(Document document, int lineIndex)