void (@NotNull Runnable runnable, @NotNull LowMemoryWatcherType notificationType, @NotNull Disposable parentDisposable) { final LowMemoryWatcher watcher = new LowMemoryWatcher(runnable, notificationType); Disposer.register(parentDisposable, () -> watcher.stop()); }