improve detection of class dependency model for undeclared report