void (@TestDisposable @NotNull Disposable testDisposable, @NotNull ActionShortcutRestrictions restrictions) { ServiceContainerUtil .replaceService(ApplicationManager.getApplication(), ActionShortcutRestrictions.class, restrictions, testDisposable); }