code: private void obtainStyledAttributes(@Nullable final AttributeSet attributeSet) {
          TypedArray typedArray =
                  getContext().obtainStyledAttributes(attributeSet, R.styleable.EditText);
          try {
              obtainMaxNumberOfCharacters(typedArray);
              obtainEditTextStyledAttributes(typedArray);
          } finally {
              typedArray.recycle();
          }
      }
docs: Obtains all attributes from a specific attribute set.
  
  @param attributeSet
  The attribute set, the attributes should be obtained from, as an instance of the type
  {@link AttributeSet} or null, if no attributes should be obtained