boolean (@NotNull Document document, int offset) { final VirtualFile file = FileDocumentManager.getInstance().getFile(document); int line = document.getLineNumber(offset); XSourcePosition position = myXBreakpoint.getSourcePosition(); return position != null && position.getLine() == line && position.getFile().equals(file); }