The method getHierarchy() does not exist on CRMEntity. It seems like you code against a sub-type of CRMEntity such as Contacts or Project or IStorages or MultiCompany or Partners or SSalesProcesses or Competition.
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation