State tax filing

My mother lives now in New York but receives a Pension from where she worked (but retired) as a teacher in CA …. CA has withheld CA State withholdings (like $5k)… no issue filing a resident form for NY but how do I get back her CA withholdings if I don’t file a CA Non Resident tax return?