void (Project project, int line, final String condition) { XBreakpointManager breakpointManager = XDebuggerManager.getInstance(project).getBreakpointManager(); for (XBreakpoint breakpoint : getBreakpoints(breakpointManager)) { if (breakpoint instanceof XLineBreakpoint lineBreakpoint) { if (lineBreakpoint.getLine() == line) { WriteAction.runAndWait(() -> lineBreakpoint.setCondition(condition)); } } } }