code: public BeanInfo getBeanInfo(Class<?> beanClass, Class<?> stopClass)
      throws IntrospectionException {
          return Introspector.getBeanInfo(beanClass, stopClass);
      }
docs: Introspects a Java bean to learn all about its properties, exposed
  methods, below a given "stop" point.
  
  @param beanClass the bean class to be analyzed
  @param stopClass the base class at which to stop the analysis.
  Any methods/properties/events in the stopClass or in its baseclasses
  will be ignored in the analysis