The method getLinks() does not exist on Settings_Vtiger_Module_Model. It seems like you code against a sub-type of Settings_Vtiger_Module_Model such as Settings_AdminAccess_Module_Model or Settings_Groups_Module_Model.
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation