void (@NotNull UUID sessionId) { String statusMessage = null/*"Auto make completed"*/; switch (myBuildStatus) { case SUCCESS -> { //statusMessage = "Auto make completed successfully"; final Long startStamp = myStartStamps.remove(sessionId); if (startStamp != null) { BuildUsageCollector.logBuildCompleted(Math.abs(System.currentTimeMillis() - startStamp), false, true); } } case UP_TO_DATE -> { //statusMessage = "All files are up-to-date"; } case ERRORS -> { statusMessage = JavaCompilerBundle.message("notification.compiler.auto.build.completed.with.errors"); } case CANCELED -> { //statusMessage = "Auto make has been canceled"; } } if (statusMessage != null) { final Notification notification = CompilerManager.NOTIFICATION_GROUP.createNotification(statusMessage, MessageType.INFO); if (!myProject.isDisposed()) { notification.notify(myProject); } myProject.putUserData(LAST_AUTO_MAKE_NOTIFICATION, notification); } else { Notification notification = myProject.getUserData(LAST_AUTO_MAKE_NOTIFICATION); if (notification != null) { notification.expire(); myProject.putUserData(LAST_AUTO_MAKE_NOTIFICATION, null); } } if (!myProject.isDisposed()) { ProblemsView view = ProblemsView.getInstanceIfCreated(myProject); if (view != null) { view.clearProgress(); view.clearOldMessages(null, sessionId); } } }