NotificationInfo (@NotNull Runnable runnable) { if (runnable instanceof ImportOptimizer.CollectingInfoRunnable) { String optimizerMessage = ((ImportOptimizer.CollectingInfoRunnable)runnable).getUserNotificationInfo(); return optimizerMessage == null ? NOTHING_CHANGED_NOTIFICATION : new NotificationInfo(optimizerMessage); } if (runnable == EmptyRunnable.getInstance()) { return NOTHING_CHANGED_NOTIFICATION; } return SOMETHING_CHANGED_WITHOUT_MESSAGE_NOTIFICATION; }