code: public Collator getCollator() {
          if (collator == null) {
              return guessCollator();
          }
          try {
              return (Collator) collator.clone();  // clone for safety
          } catch (CloneNotSupportedException e) {
              throw new ICUCloneNotSupportedException("Error in cloning collator", e);
          }
      }
docs: Get a copy of the collator according to the settings.
  
  @return collator explicit or implicit.
  @hide draft / provisional / internal are hidden on Android