public static SonarQubeNotifications get() { synchronized (LOCK) { if (singleton == null) { Timer timer = new Timer("Notifications timer", true); NotificationTimerTask timerTask = new NotificationTimerTask(); singleton = new SonarQubeNotifications(timer, timerTask, new NotificationCheckerFactory()); } return singleton; } }