void (@NotNull @NlsContexts.NotificationTitle String title, @NotNull @NlsContexts.NotificationContent String message) { if (myStateRef.compareAndSet(FormattingRequestState.RUNNING, FormattingRequestState.COMPLETED)) { myTaskSemaphore.release(); FormattingNotificationService.getInstance(myContext.getProject()).reportError(getNotificationGroupId(), title, message); } }