void (@NotNull final Project project, @NotNull final VirtualFile file, final int line) { XBreakpointManager breakpointManager = XDebuggerManager.getInstance(project).getBreakpointManager(); WriteAction.runAndWait(() -> { XLineBreakpoint<?> breakpoint = Arrays.stream(XDebuggerUtil.getInstance().getLineBreakpointTypes()) .map(t -> breakpointManager.findBreakpointAtLine(t, file, line)) .filter(nonNull()) .findFirst().orElse(null); assertNotNull(breakpoint); breakpointManager.removeBreakpoint(breakpoint); }); }