There are few earlier threads on this topic.
Many studies confirming that drinking coffee seems correlated to not getting Psc (as well as being helpful for some other liver related conditions and cancers).
Some studies:
Coffee consumption protects against progression in liver cirrhosis and increases long-term survival after liver transplantation.
https://www.cghjournal.org/#http://www.cghjournal.org/article/S1542-3565(14)00054-8/fulltext
Reduced Coffee Consumption Among Individuals With Primary Sclerosing Cholangitis but Not Primary Biliary Cirrhosis