code: private static TypedArray obtainStyledAttributes(@NonNull final Context context,
                                                       @StyleRes final int themeResourceId,
                                                       @AttrRes final int resourceId) {
          Condition.INSTANCE.ensureNotNull(context, "The context may not be null");
          Theme theme = context.getTheme();
          int[] attrs = new int[]{resourceId};
  
          if (themeResourceId != -1) {
              return theme.obtainStyledAttributes(themeResourceId, attrs);
          } else {
              return theme.obtainStyledAttributes(attrs);
          }
      }
docs: Obtains the attribute, which corresponds to a specific resource id, from a theme.
  
  @param context
  The context, which should be used, as an instance of the class {@link Context}. The
  context may not be null
  @param themeResourceId
  The resource id of the theme, the attribute should be obtained from, as an {@link
  Integer} value or -1, if the attribute should be obtained from the given context's
  theme
  @param resourceId
  The resource id of the attribute, which should be obtained, as an {@link Integer}
  value. The resource id must corresponds to a valid theme attribute
  @return A type array, which holds the attribute, which has been obtained, as an instance of
  the class {@link TypedArray}