protected static LineBreakpoint create(Project project, Document document, int lineIndex) { VirtualFile virtualFile = FileDocumentManager.getInstance().getFile(document); if (virtualFile == null) { return null; } final RangeHighlighter highlighter = createHighlighter(project, document, lineIndex); if (highlighter == null) { return null; } LineBreakpoint breakpoint = new LineBreakpoint(project, highlighter); return (LineBreakpoint) breakpoint.init(); }
public static LineBreakpoint create(@NotNull Project project, XBreakpoint xBreakpoint) { LineBreakpoint breakpoint = new LineBreakpoint(project, xBreakpoint); return (LineBreakpoint) breakpoint.init(); }