XLineBreakpoint (Project project, VirtualFile file, int line) { final XDebuggerUtilImpl debuggerUtil = (XDebuggerUtilImpl)XDebuggerUtil.getInstance(); final Promise<XLineBreakpoint> breakpointPromise = WriteAction.computeAndWait( () -> debuggerUtil.toggleAndReturnLineBreakpoint(project, file, line, false)); try { return breakpointPromise.blockingGet(TIMEOUT_MS); } catch (TimeoutException e) { throw new RuntimeException(e); } catch (ExecutionException e) { throw new RuntimeException(e.getCause()); } }