protected List getDependencies(BeanDefinition<?> beanDefinition) {
        return beanDefinition.getRequiredComponents().stream().map(Class::getName).sorted().collect(Collectors.toList());
    }
protected List getDependencies ( BeanDefinition < ? > beanDefinition ) { return beanDefinition . getRequiredComponents ( ) . stream ( ) . map ( Class :: getName ) . sorted ( ) . collect ( Collectors . toList ( ) ) ; }
@param beanDefinition A bean definition
@return A list of dependencies for the bean definition