Not the answer you want but it takes time. The tendon must heal which is a slow process. I have had some bad tendonitis in one of my knees and one bicep for months. It is finally now getting better. I learned the hard way you must give it rest, avoid things that aggravate it, and do a very good warmup on that bodypart. NSAID's relieve the pain somewhat but actually slow healing and mask it. Unfortunately, heavy weights are the worst since they put the most strain on tendon.
For me knee I fought through pain and kept squatting, taking a lot of NSAID's and it got worse and worse. I finally just took 2 weeks off from quad work, and worked back slow, just leg presses, and extentions, eventually smith squats and I am finally ready to get back under free weights. I now wish I had done that at first.
All of us have the mentality to fight through pain or we wouldn't be in this game. You need that mentality to excel. It just must be tempered for injuries. That was almost impossible for me.