code: private static PropertyDescriptor[] getPropertyDescriptors(Class<?> beanClass) throws IntrospectionException {
          BeanInfo beanInfo = java.beans.Introspector.getBeanInfo(beanClass);
  
          return beanInfo.getPropertyDescriptors();
      }
docs: Returns descriptors for all properties of the bean. May return {@code null} if the information should be obtained
  by automatic analysis.
  
  @param beanClass the class to introspect
  @return an array of {@code PropertyDescriptor}s describing all properties supported by the bean or {@code null}