@Override
    public void onTextReady(final @Nullable String updatedText) {
      if (myStateRef.compareAndSet(FormattingRequestState.RUNNING, FormattingRequestState.COMPLETED)) {
        myResult = updatedText;
        myTaskSemaphore.release();
      }
    }
@Override
    public void onTextReady(final @Nullable String updatedText)