void (@NotNull Disposable disposable) { T multicaster = myMulticaster; myMulticaster = createMulticaster(myListenerClass, myMethodReturnValues, () -> Collections.emptyList()); Disposer.register(disposable, () -> myMulticaster = multicaster); }