SystemNotifications () { Application app = ApplicationManager.getApplication(); return app.isHeadlessEnvironment() || app.isUnitTestMode() ? NULL : ApplicationManager.getApplication().getService(SystemNotifications.class); }