added $shouldInherit class method