Stav dette: Towards Practical and Automated Type-Based Program Analysis in Java