I mean personally usually fish that stop eating I try to interact with them as little as possible to gain courage. I would dump in your food and hopefully it seeing the other fish would help to make it start eating. Sometimes there are just fish that don't make it you know?
there are even stories where fish eat all the time and appear healthy and just drop dead suddenly. That's the way of this hobby sometimes