detect decorator class with inheritance