requiresDestruction method
Whether bean needs postProcessBeforeDestruction; true by
default. Returning false lets the container skip tracking beans
that have no destroy callbacks of their own.
Implementation
bool requiresDestruction(Object bean) => true;