code: private void obtainSwitchTextOn(@NonNull final TypedArray typedArray) {
          setSwitchTextOn(typedArray.getText(R.styleable.SwitchPreference_android_switchTextOn));
      }
docs: Obtains the text, which should be displayed on the preference's switch, when it is checked,
  from a specific typed array.
  
  @param typedArray
  The typed array, the text should be obtained from, as an instance of the class {@link
  TypedArray}. The typed array may not be null