Anfonwch hwn fel neges destun: Towards Practical and Automated Type-Based Program Analysis in Java