I am just curious on how people solve this. I often write the same type of code all the time. For instance:
new Thread() { //... //... //... //Change
It's possible to use Java annotations to generate boilerplate code. Writing your own annotation processor is not hard.