private static <P extends XBreakpointProperties> void addLineBreakpoint(AsyncPromise<? super XLineBreakpoint> res,
                                                                          XBreakpointManager breakpointManager,
                                                                          XLineBreakpointType<P> type,
                                                                          P properties,
                                                                          VirtualFile file,
                                                                          int line,
                                                                          Boolean temporary) {
    res.setResult(addLineBreakpoint(breakpointManager, type, properties, file, line, temporary));
  }
private static <P extends XBreakpointProperties> void addLineBreakpoint(AsyncPromise<? super XLineBreakpoint> res,
                                                                          XBreakpointManager breakpointManager,
                                                                          XLineBreakpointType<P> type,
                                                                          P properties,
                                                                          VirtualFile file,
                                                                          int line,
                                                                          Boolean temporary)