@Nullable
  protected static RunToCursorBreakpoint create(
      Project project, Document document, int lineIndex, boolean restoreBreakpoints) {
    VirtualFile virtualFile = FileDocumentManager.getInstance().getFile(document);
    if (virtualFile == null) {
      return null;
    }

    RunToCursorBreakpoint breakpoint =
        new RunToCursorBreakpoint(
            project, createHighlighter(project, document, lineIndex), restoreBreakpoints);
    document.getMarkupModel(project).removeHighlighter(breakpoint.getHighlighter());

    return (RunToCursorBreakpoint) breakpoint.init();
  }
 @Nullable
 public RunToCursorBreakpoint addRunToCursorBreakpoint(
     Document document, int lineIndex, final boolean ignoreBreakpoints) {
   return RunToCursorBreakpoint.create(myProject, document, lineIndex, ignoreBreakpoints);
 }