code: private void obtainEntries(@NonNull final TypedArray typedArray) {
          CharSequence[] obtainedEntries =
                  typedArray.getTextArray(R.styleable.AbstractListPreference_android_entries);
  
          if (obtainedEntries != null) {
              setEntries(obtainedEntries);
          }
      }
docs: Obtains the the entries of the list preference from a specific typed array.
  
  @param typedArray
  The typed array, the entries should be obtained from, as an instance of the class
  {@link TypedArray}. The typed array may not be null