I retired from Lockheed Martin Missiles and Fire Control December 31 2019. I payed both Mass and Maine state taxes. Do I still have to pay Mass state taxes?

I live in Maine for the pass 34 years. The retirement benifits are not distributed from the Massachusetts division, which I was employed at.