I don't think finding a style file while following inheritence order should be the business of a textformatter. This logic needs to be put elsewhere.