void () { // create default breakpoint without locking var defaultBreakpoints = createDefaultBreakpoints(); withLockMaybeCancellable(myLock, () -> { myDefaultBreakpoints.clear(); //noinspection unchecked defaultBreakpoints.forEach(b -> addBreakpoint(b, true, false)); myFirstLoadDone = true; }); }