code: @NullSafe
    static int getModifiers(Object obj) {
      return (obj instanceof Class ? ((Class<?>) obj).getModifiers()
        : (obj instanceof Member ? ((Member) obj).getModifiers() : 0));
    }
docs: Determines the {@link Modifier modifiers} for a given {@link Class} or {@link Member}.
  
  @param obj {@link Object} to evaluate. The {@link Object} must be a {@link Class} or a {@link Member}.
  @return the {@link Modifier modifiers} for the given {@link Class} or {@link Member}.
  Returns {@literal 0} if the object has no modifiers.
  @see java.lang.reflect.Member#getModifiers()
  @see java.lang.Class#getModifiers()