code: @SuppressWarnings("unused")
      public void clearCompletionText() {
          //Respect currentCompletionText in case hint is visible or if other checks are added.
          if (currentCompletionText().length() == 0){
              return;
          }
  
          Range currentRange = getCurrentCandidateTokenRange();
          internalEditInProgress = true;
          getText().delete(currentRange.start, currentRange.end);
          internalEditInProgress = false;
      }
docs: Clear the completion text only.